Spaces:
Sleeping
Sleeping
Update helper.py
Browse files
helper.py
CHANGED
@@ -33,7 +33,7 @@ def get_fn(model_name: str, **model_kwargs) -> Callable:
|
|
33 |
top_p=top_p,
|
34 |
stream=True,
|
35 |
# Ensure response_format is set correctly; typically it's a string like 'text'
|
36 |
-
response_format="text",
|
37 |
)
|
38 |
|
39 |
response_text = ""
|
|
|
33 |
top_p=top_p,
|
34 |
stream=True,
|
35 |
# Ensure response_format is set correctly; typically it's a string like 'text'
|
36 |
+
response_format={"type": "text"},
|
37 |
)
|
38 |
|
39 |
response_text = ""
|