harris1 commited on
Commit
14b4b96
1 Parent(s): 3ac9eaa

Update openai_client.py

Browse files
Files changed (1) hide show
  1. openai_client.py +1 -1
openai_client.py CHANGED
@@ -27,7 +27,7 @@ def get_code_review_response(prompt, max_tokens=1000):
27
  },
28
  ],
29
  )
30
- return response.choices[0].message.content
31
  except Exception as e:
32
  return "Sorry, an error occurred while generating your idea. Please try again later."
33
 
 
27
  },
28
  ],
29
  )
30
+ return response.text
31
  except Exception as e:
32
  return "Sorry, an error occurred while generating your idea. Please try again later."
33