Update app.py
Browse files
app.py
CHANGED
@@ -24,7 +24,7 @@ def generate_response(prompt, openai_api_key, image_info="", reasoning_effort="m
|
|
24 |
{"role": "system", "content": "You are a helpful assistant."},
|
25 |
{"role": "user", "content": full_prompt},
|
26 |
],
|
27 |
-
max_completion_tokens=
|
28 |
reasoning_effort=reasoning_effort # Include reasoning_effort in the request
|
29 |
)
|
30 |
return response["choices"][0]["message"]["content"]
|
|
|
24 |
{"role": "system", "content": "You are a helpful assistant."},
|
25 |
{"role": "user", "content": full_prompt},
|
26 |
],
|
27 |
+
max_completion_tokens=2000, # Use max_completion_tokens instead of max_tokens
|
28 |
reasoning_effort=reasoning_effort # Include reasoning_effort in the request
|
29 |
)
|
30 |
return response["choices"][0]["message"]["content"]
|