Skip to content

Commit

Permalink
bugfix for custom api server
Browse files Browse the repository at this point in the history
  • Loading branch information
mylxsw committed Oct 7, 2023
1 parent 5a08977 commit c2f0285
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/repo/openai_repo.dart
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class OpenAIRepository {
} else {
// 使用公共服务器
OpenAI.apiKey = settings.getDefault(settingAPIServerToken, '');
OpenAI.baseUrl = apiServerURL;
OpenAI.baseUrl = settings.getDefault(settingServerURL, apiServerURL);
OpenAI.organization = "";
OpenAI.externalHeaders = {
'X-CLIENT-VERSION': clientVersion,
Expand Down

0 comments on commit c2f0285

Please sign in to comment.