Sabbah13 commited on
Commit
53dde00
1 Parent(s): 89ce027

Update gigiachat_requests.py

Browse files
Files changed (1) hide show
  1. gigiachat_requests.py +2 -1
gigiachat_requests.py CHANGED
@@ -78,11 +78,12 @@ def get_completion_from_gigachat(prompt, max_tokens, access_token):
78
 
79
  return answer_from_llm
80
 
81
- def process_transcribation_with_gigachat(prompt, transcript, access_token):
82
  url_completion = os.getenv('GIGA_COMPLETION_URL')
83
 
84
  data_copm = json.dumps({
85
  "model": 'GigaChat-Plus',
 
86
  "messages": [
87
  {
88
  "role": "user",
 
78
 
79
  return answer_from_llm
80
 
81
+ def process_transcribation_with_gigachat(prompt, transcript, max_tokens, access_token):
82
  url_completion = os.getenv('GIGA_COMPLETION_URL')
83
 
84
  data_copm = json.dumps({
85
  "model": 'GigaChat-Plus',
86
+ "max_tokens": max_tokens,
87
  "messages": [
88
  {
89
  "role": "user",