minko186 commited on
Commit
c80b6f5
·
verified ·
1 Parent(s): 9ff8a33

Update ai_generate.py

Browse files
Files changed (1) hide show
  1. 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
- print(response.choices[0].message)
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":