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

[Feature]: Too few models are supported #1297

Closed
2catycm opened this issue Jan 2, 2024 · 17 comments
Closed

[Feature]: Too few models are supported #1297

2catycm opened this issue Jan 2, 2024 · 17 comments
Labels
enhancement New feature or request

Comments

@2catycm
Copy link

2catycm commented Jan 2, 2024

The Feature

Many famous LLM model are not included, while other similar github repo like https://github.com/songquanpeng/one-api and https://github.com/llmapi-io/llmapi-server supports them.

For example, this repo don't include:

  • Baidu ERINE (文心一言)
  • Tsinghua&ZhiPu ChatGLM_turbo (智谱清言)
  • Ali QWEN (通义千问)

and these models are of high interest to me.

Motivation, pitch

This Repo seems elegant and simple, which is good compared to others. But is doesn't support some models that are famous in some community.

Twitter / LinkedIn details

No response

@2catycm 2catycm added the enhancement New feature or request label Jan 2, 2024
@2catycm
Copy link
Author

2catycm commented Jan 2, 2024

Oh, I see gemini and claude in the doc now, my bad. Edited.

@ishaan-jaff
Copy link
Contributor

what doc did you see that made it seem we don't support enough providers @2catycm ?

@krrishdholakia
Copy link
Contributor

Hi @2catycm, please feel free to add any specific models / providers you'd like support for, in this thread - #1294

Closing this issue in favor of tracking it on that thread.

Similar to @ishaan-jaff, curious what made you feel we didn't support a lot of providers?

@yuanjiexiong
Copy link

yuanjiexiong commented Mar 27, 2024

@krrishdholakia
I also need qwen、 ChatGLM .
qwen、 ChatGLM is most popular in China and have opensource and api version(Because gpt is illegal in china and need to use vpn to visit)!!!!
But I don't know whether api can visit or not in other country.

528 562

@yuanjiexiong
Copy link

yuanjiexiong commented Mar 27, 2024

what made you feel we didn't support a lot of providers?
@krrishdholakia
You can see, the 1st is illegal in China and 2nd 3rd 4th are missing.
317164766-0ee6ed16-0582-420d-bb6d-337f71cb077b

Because most chinese people can't not use other country model(don't have vpn), so we need 2nd 3rd 4th.

@Undertone0809
Copy link
Contributor

Undertone0809 commented Mar 27, 2024

@2catycm
Copy link
Author

2catycm commented Mar 27, 2024

what doc did you see that made it seem we don't support enough providers @2catycm ?

Yes, some models are illegal in China because the data is stored in server outside China (for which the law maker might think it dangerous), and the algorithm is not put on records. Just like why Tiktok is now becoming illegal in America. With this context, a lack of support for legal LLMs in China would seem "too few" for some users.

@2catycm
Copy link
Author

2catycm commented Mar 27, 2024

@krrishdholakia I also need qwen、 ChatGLM . qwen、 ChatGLM is most popular in China and have opensource and api version(Because gpt is illegal in china and need to use vpn to visit)!!!! But I don't know whether api can visit or not in other country.

528 562

So maybe for the same reason these models on the list might not be legal in America or other countries, not sure about that

@2catycm
Copy link
Author

2catycm commented Mar 27, 2024

@krrishdholakia I also need qwen、 ChatGLM . qwen、 ChatGLM is most popular in China and have opensource and api version(Because gpt is illegal in china and need to use vpn to visit)!!!! But I don't know whether api can visit or not in other country.

528 562

But open source models would definitely not be a problem for law.
And this litellm library supports huggingface, which means most open source transformers are supported.

@dl942702882
Copy link

dl942702882 commented Apr 4, 2024

hope for support for Ali QWen。

@NeverOccurs
Copy link

NeverOccurs commented Apr 5, 2024

It seems Kimi and ChatGLM are now using similar format as openAI, which means with just a little work you can use them via LiteLLM. I have not tested Qwen but it seems plausible.

@dl942702882
Copy link

It seems Kimi and ChatGLM are now using similar format as openAI, which means with just a little work you can use them via LiteLLM. I have not tested Qwen but it seems plausible.

qwen request format is quite different;

@NeverOccurs
Copy link

It seems Kimi and ChatGLM are now using similar format as openAI, which means with just a little work you can use them via LiteLLM. I have not tested Qwen but it seems plausible.

qwen request format is quite different;

Yeah After taking some look into it I noticed that too. Seems dashscope is a must. Will look into it but normally glm and Kimi work smoothly.

@krrishdholakia
Copy link
Contributor

Hey @dl942702882 @NeverOccurs why use litellm to proxy openai-compatible models?

@NeverOccurs
Copy link

Hey @dl942702882 @NeverOccurs why use litellm to proxy openai-compatible models?

At first I used it to proxy ollama in order to use function calling. Then I tried to use it proxy some OpenAI compatible LLMs to see if I can achieve easier management of LLMs. Mostly it is because I'm new to this so just trying around.
Speaking of that there is indeed a question. I use outside app to call Litellm endpoint but I cannot set temperature in that app and it by default send requests with temperature 0.0, which is not acceptable for some LLMs. Is there a way to fix a temperature parameter in LiteLLM setting ignoring the parameter passed to it?

@dl942702882
Copy link

dl942702882 commented Apr 7, 2024

Hey @dl942702882 @NeverOccurs why use litellm to proxy openai-compatible models?

cause qwen is not openai-compatible, the chat request format is different. see here qwen api doc
litellm is a very good project。
actually, i am looking for litellm can custom model integration , that i can integrate any models that i need。

@zryf2000
Copy link

zryf2000 commented Apr 7, 2024

Langchain already has corresponding examples and hopes to access them as soon as possible. Here are some links I hope you find helpful.
https://python.langchain.com/docs/integrations/chat/tongyi/
https://python.langchain.com/docs/integrations/chat/baidu_qianfan_endpoint/
https://python.langchain.com/docs/integrations/chat/zhipuai/

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

No branches or pull requests

8 participants