wip: added ChatGPT settings

This commit is contained in:
0xJacky 2023-03-21 10:45:28 +08:00
parent 9d741b493a
commit 53f183c161
No known key found for this signature in database
GPG key ID: B6E4A6E4A561BAF0
3 changed files with 64 additions and 25 deletions

View file

@ -71,7 +71,7 @@ func MakeChatCompletionRequest(c *gin.Context) {
ctx := context.Background()
req := openai.ChatCompletionRequest{
Model: openai.GPT3Dot5Turbo0301,
Model: settings.OpenAISettings.Model,
Messages: messages,
Stream: true,
}