More Model Providers support 更多模型服务商支持 #1284
Replies: 97 comments 188 replies
This comment was marked as spam.
This comment was marked as spam.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
-
申请增加GCP的Vertex AI大模型服务,此类服务用服务账号身份认证。可以满足企业级数据合规要求。🙏 |
Beta Was this translation helpful? Give feedback.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
-
Beside Azure ML Studio, there is also an Azure AI Studio at https://ai.azure.com/ Here I deployed the LLaMa 3.1 405B and this is the sample code from Azure code snippet: # pip install azure-ai-inference
import os
from azure.ai.inference import ChatCompletionsClient
from azure.core.credentials import AzureKeyCredential
api_key = os.getenv("AZURE_INFERENCE_CREDENTIAL", '')
if not api_key:
raise Exception("A key should be provided to invoke the endpoint")
client = ChatCompletionsClient(
endpoint='https://Meta-Llama-3-1-405B-Instruct-bft.eastus.models.ai.azure.com',
credential=AzureKeyCredential(api_key)
)
model_info = client.get_model_info()
print("Model name:", model_info.model_name)
print("Model type:", model_info.model_type)
print("Model provider name:", model_info.model_provider_name)
payload = {
"messages": [
{
"role": "user",
"content": "I am going to Paris, what should I see?"
},
{
"role": "assistant",
"content": "Paris, the capital of France, is known for its stunning architecture, art museums, historical landmarks, and romantic atmosphere. Here are some of the top attractions to see in Paris:\n\n1. The Eiffel Tower: The iconic Eiffel Tower is one of the most recognizable landmarks in the world and offers breathtaking views of the city.\n2. The Louvre Museum: The Louvre is one of the world's largest and most famous museums, housing an impressive collection of art and artifacts, including the Mona Lisa.\n3. Notre-Dame Cathedral: This beautiful cathedral is one of the most famous landmarks in Paris and is known for its Gothic architecture and stunning stained glass windows.\n\nThese are just a few of the many attractions that Paris has to offer. With so much to see and do, it's no wonder that Paris is one of the most popular tourist destinations in the world."
},
{
"role": "user",
"content": "What is so great about #1?"
}
],
"max_tokens": 4096,
"temperature": 0.8,
"top_p": 0.1,
"presence_penalty": 0
}
response = client.complete(payload)
print("Response:", response.choices[0].message.content)
print("Model:", response.model)
print("Usage:")
print(" Prompt tokens:", response.usage.prompt_tokens)
print(" Total tokens:", response.usage.total_tokens)
print(" Completion tokens:", response.usage.completion_tokens) |
Beta Was this translation helpful? Give feedback.
-
Cerebras AI |
Beta Was this translation helpful? Give feedback.
-
建议增加对“无问芯穹”的支持。 |
Beta Was this translation helpful? Give feedback.
-
LM studio + |
Beta Was this translation helpful? Give feedback.
-
AIMLAPI.com |
Beta Was this translation helpful? Give feedback.
-
什么时候能更新一下模板pr呢?原来那个已经不适用了吧 |
Beta Was this translation helpful? Give feedback.
-
期望尽快能将豆包合并到主分支。 |
Beta Was this translation helpful? Give feedback.
-
麻烦添加英伟达云大模型,新晋王者:https://build.nvidia.com/nvidia/llama-3_1-nemotron-70b-instruct?snippet_tab=Python |
Beta Was this translation helpful? Give feedback.
This comment has been minimized.
This comment has been minimized.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
-
@arvinxx 希望可以增加个按钮,增加openai api兼容的模型 |
Beta Was this translation helpful? Give feedback.
This comment has been hidden.
This comment has been hidden.
-
Some days ago I discovered Portkey which is awesome, what about adding it to LobeChat? What is Portkey?"
It takes 2 mins to integrate and with that, it starts monitoring all of your LLM requests and makes your app resilient, secure, performant, and more accurate at the same time. Integrate in 3 Lines of Code for Python, NodeJS, OpenAI NodeJS SDK, RestAPINodeJS: import Portkey from 'portkey-ai';
const portkey = new Portkey({
apiKey: "YOUR_PORTKEY_API_KEY",
virtualKey: "YOUR_VIRTUAL_KEY"
});
async function createChatCompletion() {
const chat_complete = await portkey.chat.completions.create({
model: "gpt-3.5-turbo",
messages: [
{ role: "system", content: "You are a helpful assistant." },
{ role: "user", content: "Hello!" }
]
});
console.log(chat_complete.choices[0].message.content);
}
createChatCompletion();
|
Beta Was this translation helpful? Give feedback.
-
希望能够提供自定义模型设置(openai api标准),有时候需要增加很多相同api标准的模型,提高了灵活度 |
Beta Was this translation helpful? Give feedback.
-
LobeChat currently supports many model providers, and considering the development of the AI ecosystem, we have specifically opened this discussion to record everyone's needs for new model service providers.
LobeChat 目前已经支持了诸多模型供应商,考虑到 AI 生态的发展,我们专门开放此贴用于记录大家对于新模型服务商的需求。
Currently, the service providers currently supported by LobeChat are as follows:
目前 LobeChat 已支持的服务商如下:
WIP:
Plan:
Important
If you have any requests for new model suppliers, feel free to comment below. When the number of upvotes exceeds 15, we will consider implementing it.
如果大家对于新模型供应商有诉求,欢迎在下方跟帖,当up数超过 15 时,我们会考虑将其实现
PRs Welcome 💞
Tip
We also welcome PRs. We have received many contributions regarding model Providers, so we have maintained a library of icons for LLMs and Provider vendors, facilitating everyone's future development. https://github.com/lobehub/lobe-icons
同时欢迎 PR,我们已经收获到许多关于模型 Provider 的贡献, 因此我们维护了一个 LLMs 和 Provider 供应商的图标库,方便大家后续开发 https://github.com/lobehub/lobe-icons
Beta Was this translation helpful? Give feedback.
All reactions