mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-17 13:57:10 +00:00
feat: support openai api baseurl
This commit is contained in:
parent
17fb123e3b
commit
f84663e2a9
4 changed files with 11 additions and 1 deletions
|
|
@ -675,6 +675,7 @@ export class chatgpt extends plugin {
|
|||
let promptPrefix = `You are ${Config.assistantLabel}, a large language model trained by OpenAI. ${Config.promptPrefixOverride || defaultPropmtPrefix}
|
||||
Current date: ${currentDate}`
|
||||
this.chatGPTApi = new ChatGPTAPI({
|
||||
apiBaseUrl: Config.openAiBaseUrl,
|
||||
apiKey: Config.apiKey,
|
||||
debug: false,
|
||||
upsertMessage,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue