fruitpicker01 commited on
Commit
28309f5
·
verified ·
1 Parent(s): afab171

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -23,6 +23,9 @@ import httpx
23
  import asyncio
24
  import ssl
25
 
 
 
 
26
  class AsyncGigaChat:
27
  def __init__(self, credentials, model, base_url, max_tokens, temperature, verify_ssl_certs=True):
28
  self.credentials = credentials
@@ -83,8 +86,7 @@ client_mistral_check = Mistral(api_key=MISTRAL_API_KEY)
83
 
84
  morph = pymorphy3.MorphAnalyzer()
85
 
86
- # Авторизация в GigaChat Pro
87
- gc_key = os.getenv('GC_KEY')
88
  #chat_pro = GigaChat(credentials=gc_key, model='GigaChat', max_tokens=68, temperature=1.15, verify_ssl_certs=False)
89
  #chat_pro = GigaChat(
90
  # credentials=gc_key,
 
23
  import asyncio
24
  import ssl
25
 
26
+ # Авторизация в GigaChat Pro
27
+ gc_key = os.getenv('GC_KEY')
28
+
29
  class AsyncGigaChat:
30
  def __init__(self, credentials, model, base_url, max_tokens, temperature, verify_ssl_certs=True):
31
  self.credentials = credentials
 
86
 
87
  morph = pymorphy3.MorphAnalyzer()
88
 
89
+
 
90
  #chat_pro = GigaChat(credentials=gc_key, model='GigaChat', max_tokens=68, temperature=1.15, verify_ssl_certs=False)
91
  #chat_pro = GigaChat(
92
  # credentials=gc_key,