feat: 调整测试内容

This commit is contained in:
tbphp
2025-07-13 22:14:48 +08:00
parent ecd4b50aab
commit 411f8f2e78
2 changed files with 3 additions and 3 deletions

View File

@@ -84,9 +84,9 @@ func (ch *OpenAIChannel) ValidateKey(ctx context.Context, key string) (bool, err
payload := gin.H{
"model": ch.TestModel,
"messages": []gin.H{
{"role": "user", "content": "Only output 'ok'"},
{"role": "user", "content": "hi"},
},
"max_tokens": 1,
"max_tokens": 100,
}
body, err := json.Marshal(payload)
if err != nil {