to:sync
This commit is contained in:
parent
1341dad9b4
commit
d2138a773e
@ -22,12 +22,12 @@ 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": "google/gemma-7b-it:free",
|
||||
"model": "meta-llama/llama-3.2-11b-vision-instruct:free",
|
||||
"stream": false,
|
||||
"messages": []map[string]interface{}{{"role": "user", "content": prompt}},
|
||||
}).SetHeaders(map[string]string{
|
||||
"Content-Type": "application/json",
|
||||
"Authorization": "Bearer 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",
|
||||
"Authorization": "Bearer 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",
|
||||
}).
|
||||
SetSuccessResult(&result).
|
||||
Post(url)
|
||||
|
Loading…
x
Reference in New Issue
Block a user