Update app.py
Browse files
app.py
CHANGED
@@ -99,7 +99,7 @@ def generate_response(input_text, image, pdf_content, openai_api_key, reasoning_
|
|
99 |
response = openai.ChatCompletion.create(
|
100 |
model=model_choice,
|
101 |
messages=messages,
|
102 |
-
|
103 |
)
|
104 |
|
105 |
return response.choices[0].message.content
|
|
|
99 |
response = openai.ChatCompletion.create(
|
100 |
model=model_choice,
|
101 |
messages=messages,
|
102 |
+
max_completion_tokens=2000
|
103 |
)
|
104 |
|
105 |
return response.choices[0].message.content
|