-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 在 ChatService 初始化时增加环境变量配置检查,提醒配置 OPENAI_API_URL 和 OPENAI_API_KEY - 改进 getChatGPTAuth 函数,增加返回值 enable 表示服务是否可用 - 在使用 ChatGPT 接口前检查服务是否启用,避免不必要的调用 -优化代码结构,提高可读性和可维护性
- Loading branch information
Showing
1 changed file
with
18 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters