feat: refactoring adjustments for member pages

This commit is contained in:
RockYang
2024-03-18 16:59:07 +08:00
parent c72d963f45
commit 30e6e963b3
7 changed files with 24 additions and 30 deletions

View File

@@ -110,7 +110,7 @@ func OpenAIRequest(db *gorm.DB, prompt string) (string, error) {
r, err := client.R().SetHeader("Content-Type", "application/json").
SetHeader("Authorization", "Bearer "+apiKey.Value).
SetBody(types.ApiRequest{
Model: "gpt-3.5-turbo",
Model: "gpt-3.5-turbo-0125",
Temperature: 0.9,
MaxTokens: 1024,
Stream: false,