diff --git a/internal/channel/gemini_channel.go b/internal/channel/gemini_channel.go index 053eef4..6d552c1 100644 --- a/internal/channel/gemini_channel.go +++ b/internal/channel/gemini_channel.go @@ -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"}, }}, }, } diff --git a/internal/channel/openai_channel.go b/internal/channel/openai_channel.go index 016e0d1..1f014a8 100644 --- a/internal/channel/openai_channel.go +++ b/internal/channel/openai_channel.go @@ -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 {