From d2138a773e719567b1b8a540bd12c0f1b7525070 Mon Sep 17 00:00:00 2001 From: shaoyongjun Date: Tue, 8 Oct 2024 09:42:34 +0800 Subject: [PATCH] to:sync --- infrastructure/remote_http/ai-router-impl.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/infrastructure/remote_http/ai-router-impl.go b/infrastructure/remote_http/ai-router-impl.go index e6cd993..1df0f32 100644 --- a/infrastructure/remote_http/ai-router-impl.go +++ b/infrastructure/remote_http/ai-router-impl.go @@ -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)