Spaces:
Sleeping
Sleeping
Update openai_client.py
Browse files- 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.
|
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 |
|