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

请问可以增加对MiniMax AI大模型的支持吗? #41

Open
dludream opened this issue Oct 1, 2024 · 1 comment
Open

请问可以增加对MiniMax AI大模型的支持吗? #41

dludream opened this issue Oct 1, 2024 · 1 comment

Comments

@dludream
Copy link

dludream commented Oct 1, 2024

===== 对话 AI 设置 =====

使用的 bot 类型,目前支持 chatgptapi, glm, gemini, langchain, qwen, doubao, moonshot, yi, llama,

bot: chatgptapi

官网的调用参考如下:
from openai import OpenAI

client = OpenAI(
api_key="", # <--在这里使用MiniMax账户管理-接口密钥中API KEY进行接入
base_url="https://api.minimax.chat/v1",
)

completion = client.chat.completions.create(
model="abab6.5s-chat",
messages=[
{"role": "system", "content": "MM智能助理是一款由MiniMax自研的,没有调用其他产品的接口的大型语言模型。MiniMax是一家中国科技公司,一直致力于进行大模型相关的研究。"},
{"role": "user", "content": "你好"}
]
)

print(completion)
print("Trace-ID:", completion.id)

@dludream
Copy link
Author

dludream commented Oct 1, 2024

不好意思,发错项目了,已发到XIAOGPT,我这没找到删除的地方,请您删除。

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

1 participant