Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -40,7 +40,15 @@ client = Together(api_key=TOGETHER_API_KEY)
|
|
40 |
client_mistral = Mistral(api_key=MISTRAL_API_KEY)
|
41 |
|
42 |
# Авторизация в сервисе GigaChat
|
43 |
-
chat_pro = GigaChat(credentials=gc_key, model='GigaChat-Pro', max_tokens=68, temperature=1.15, verify_ssl_certs=False)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
chat_lite = GigaChat(credentials=gc_key, model='GigaChat', max_tokens=68, temperature=1.15, verify_ssl_certs=False)
|
45 |
chat_plus = GigaChat(credentials=gc_key, model='GigaChat-Plus', max_tokens=68, temperature=1.15, verify_ssl_certs=False)
|
46 |
|
|
|
40 |
client_mistral = Mistral(api_key=MISTRAL_API_KEY)
|
41 |
|
42 |
# Авторизация в сервисе GigaChat
|
43 |
+
# chat_pro = GigaChat(credentials=gc_key, model='GigaChat-Pro', max_tokens=68, temperature=1.15, verify_ssl_certs=False)
|
44 |
+
chat_pro = GigaChat(
|
45 |
+
credentials=gc_key,
|
46 |
+
model='GigaChat-Pro-preview',
|
47 |
+
base_url='https://gigachat-preview.devices.sberbank.ru/',
|
48 |
+
max_tokens=68,
|
49 |
+
temperature=1.15,
|
50 |
+
verify_ssl_certs=False
|
51 |
+
)
|
52 |
chat_lite = GigaChat(credentials=gc_key, model='GigaChat', max_tokens=68, temperature=1.15, verify_ssl_certs=False)
|
53 |
chat_plus = GigaChat(credentials=gc_key, model='GigaChat-Plus', max_tokens=68, temperature=1.15, verify_ssl_certs=False)
|
54 |
|