This commit is contained in:
shaoyongjun 2024-10-08 09:52:57 +08:00
parent d2138a773e
commit 89c16b91c2

View File

@ -22,7 +22,7 @@ func (aiRouterImpl) Completions(ctx context.Context, prompt, groupId string) (*d
//const body = JSON.stringify({model: "google/gemma-7b-it:free", "stream": false, messages: messages});
resp, err := httpClient.R().
SetBody(map[string]interface{}{
"model": "meta-llama/llama-3.2-11b-vision-instruct:free",
"model": "qwen/qwen-2-7b-instruct:free",
"stream": false,
"messages": []map[string]interface{}{{"role": "user", "content": prompt}},
}).SetHeaders(map[string]string{