Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There is an Exception when i deploy this project and ask questions. #13

Open
liys6666 opened this issue Jan 15, 2025 · 8 comments
Open

Comments

@liys6666
Copy link

WechatIMG55
@jinliyl
Copy link
Collaborator

jinliyl commented Jan 17, 2025

Is there a dashscope key injected into env, or this dashscope key can be used to call the Baichuan4 model directly?

@liys6666
Copy link
Author

liys6666 commented Jan 17, 2025

Yes, i have one. But it seems not support Baichuan4. If i want to use other models except OPENAI and QWEN,what should i do?

@jinliyl
Copy link
Collaborator

jinliyl commented Jan 17, 2025

You need to implement a client for calling Baichuan4 in memoryscope.core.models, maintaining the same interface as the base class.

@liys6666
Copy link
Author

Image Does it mean that I need to create a Baichuan4 Client `.py` file similar to the `base_model.py` shown in the picture? However, I am unable to find the location of the `api_url` corresponding to different models.

@jinliyl
Copy link
Collaborator

jinliyl commented Jan 17, 2025

Yes, you can write a client for Baichuan4 based on the Basemodel framework. You can refer to the LlamaIndexGenerationModel for guidance. If you are familiar with llamaindex, a simpler way is to add a class corresponding to Baichuan in the llama_index at line 27 of the LlamaIndexGenerationModel.

@liys6666
Copy link
Author

I am not familiar with llamaindex. I have to learn it now. So it means that we don't need a api_url, just a Baichuan4 llamaindex is enough.

@jinliyl
Copy link
Collaborator

jinliyl commented Jan 17, 2025

Yes, accessing through llamaindex is the most convenient.

@liys6666
Copy link
Author

Thank you, now i will have a try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants