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

希望 通过应用的API Key 进行对话时, 能使用通用的OpenAI 格式 #353

Open
wang-zhibo opened this issue May 3, 2024 · 4 comments
Assignees

Comments

@wang-zhibo
Copy link

MaxKB 版本

1.1.1

请描述您的需求或者改进建议

希望增加会话api 能支持oneapi 格式

请描述你建议的实现方案

No response

附加信息

No response

@baixin513 baixin513 changed the title [FEATURE] 希望增加会话api 能支持oneapi 格式 May 6, 2024
@baixin513
Copy link
Contributor

感谢反馈, OneAPI 应该和 OpenAI 的格式是通用的,您可以在 MaxKB 添加 模型时选择 OpenAI供应商,然后 API 域名输入 OneAPI 的服务地址,基础模型输入你想要对接的OneAPI 中的模型名称。

@wang-zhibo
Copy link
Author

是我没有描述清楚, 是这样的 是想把 maxkb 知识库的 会话 接入 oneapi, 方便管理,和接入别的项目 类似于 maxkb 里的 /api/application/chat_message/{chat_id} 接口, 把他标准化 openai api 格式

@jwdstef
Copy link

jwdstef commented May 13, 2024

意思就是API接口对其openai的API接口,这样maxkb的对外API就可以当openai的方式来使用了,这个提议非常好,建议加上

@baixin513 baixin513 reopened this May 15, 2024
@baixin513 baixin513 changed the title 希望增加会话api 能支持oneapi 格式 希望 通过应用的API Key 进行对话时, 能使用通用的OpenAI 格式 May 16, 2024
@fitchibing
Copy link

支持,

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

No branches or pull requests

4 participants