rodrigomasini commited on
Commit
0663556
·
verified ·
1 Parent(s): 35e46c7

Update helper.py

Browse files
Files changed (1) hide show
  1. helper.py +1 -1
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 = ""