Spaces:
Runtime error
Runtime error
Update ai_generate.py
Browse files- ai_generate.py +1 -2
ai_generate.py
CHANGED
@@ -42,8 +42,7 @@ def generate_openai(text, model, openai_client):
|
|
42 |
max_tokens=800,
|
43 |
frequency_penalty=0.0
|
44 |
)
|
45 |
-
|
46 |
-
return response.choices[0].message
|
47 |
|
48 |
def generate(text, model, api):
|
49 |
if model == "Llama 3":
|
|
|
42 |
max_tokens=800,
|
43 |
frequency_penalty=0.0
|
44 |
)
|
45 |
+
return response.choices[0].message.content
|
|
|
46 |
|
47 |
def generate(text, model, api):
|
48 |
if model == "Llama 3":
|