feat: 调整测试内容

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

No files matched your search

+1 -1
View File
@@ -86,7 +86,7 @@ func (ch *GeminiChannel) ValidateKey(ctx context.Context, key string) (bool, err
payload := gin.H{
"contents": []gin.H{
{"parts": []gin.H{
{"text": "Only output 'ok'"},
{"text": "hi"},
}},
},
}
+2 -2
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 {