shukdevdatta123 commited on
Commit
b4083fe
·
verified ·
1 Parent(s): b3fbe5e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -25,7 +25,7 @@ def generate_response(prompt, openai_api_key, image_info="", reasoning_effort="m
25
  {"role": "user", "content": full_prompt},
26
  ],
27
  temperature=0.7,
28
- max_tokens=300,
29
  reasoning_effort=reasoning_effort # Include reasoning_effort in the request
30
  )
31
  return response["choices"][0]["message"]["content"]
 
25
  {"role": "user", "content": full_prompt},
26
  ],
27
  temperature=0.7,
28
+ max_completion_tokens=300, # Use max_completion_tokens instead of max_tokens
29
  reasoning_effort=reasoning_effort # Include reasoning_effort in the request
30
  )
31
  return response["choices"][0]["message"]["content"]