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

Feat: 适配openai>=1.0.0 #587

Merged
merged 6 commits into from
Nov 10, 2023
Merged

Feat: 适配openai>=1.0.0 #587

merged 6 commits into from
Nov 10, 2023

Conversation

RockChinQ
Copy link
Owner

@RockChinQ RockChinQ commented Nov 10, 2023

概述

适配OpenAI库1.0.0版本API

事务

  • 已阅读仓库贡献指引
  • 已与维护者在issues或其他平台沟通此PR大致内容

以下内容可在起草PR后、合并PR前逐步完成

功能

  • 已编写完善的配置文件字段说明(若有新增)
  • 已编写面向用户的新功能说明(若有必要)
  • 已测试新功能或更改

兼容性

  • 已处理版本兼容性
  • 已处理插件兼容问题

@RockChinQ RockChinQ marked this pull request as draft November 10, 2023 02:21
@RockChinQ
Copy link
Owner Author

RockChinQ commented Nov 10, 2023

Tasks

  • 实例化客户端
  • Key 设置
  • 正/反代理设置
  • 请求创建
  • 异步客户端
  • 异常处理

@RockChinQ RockChinQ added m: Provider OpenAI API 或其他 LLM 模型相关 dependencies 依赖库相关 labels Nov 10, 2023
@RockChinQ RockChinQ marked this pull request as ready for review November 10, 2023 03:47
@RockChinQ
Copy link
Owner Author

OpenAI接口异常处理还没详细适配,遇到未处理的异常时欢迎反馈。

@RockChinQ RockChinQ merged commit 45e4096 into master Nov 10, 2023
@RockChinQ RockChinQ deleted the hotfix/openai-1.0-adaptation branch November 10, 2023 03:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies 依赖库相关 m: Provider OpenAI API 或其他 LLM 模型相关
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: 启动/更新时提示 ModuleNotFoundError: No module named 'openai.error'
1 participant