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

添加第三方OpenAI API配置支持 #77

Closed
wants to merge 20 commits into from
Closed

添加第三方OpenAI API配置支持 #77

wants to merge 20 commits into from

Conversation

TonWin618
Copy link
Contributor

解决了 #19 中提到的问题

JeffreySu and others added 20 commits January 4, 2024 10:42
添加自定义 ChatPrompt
Senparc.AI.Kernel v0.9.1 优化注册过程
v0.10.0 添加 FastAPI 模型选项
修改 Sample 默认配置
删除无效代码,appsettings.json 和 SenparcAiSetting 全面接管模型配置
Senparc.AI.Kernel v0.13.1 SemanticAiHandler.ChatConfig() 方法添加 promptT…
v0.14.0 完善模型识别
Console 不参与 .sln 的 Release 编译
升级 SK 到  V1.4,升级基础库。为避免和 Kernel 库的命名冲突,重命名 Senparc.AI.Register.UseSen…
@TonWin618
Copy link
Contributor Author

KernelBuilder注册OpenAI相关服务时,httpClient参数传入使用改写RequestUri后的HttpClient,实现对第三方OpenAI API的支持。
appsettings.json文件中的"OpenAIKeys"键下增加"OpenAIProxyEndpoint"键用来指定第三方代理OpenAI API地址。
该键的值为空时使用OpenAI官方API。

@TonWin618 TonWin618 closed this Apr 19, 2024
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

Successfully merging this pull request may close these issues.

2 participants