Format Python code with psf/black push

github-actions 2 years ago
parent 6cea6da6fe
commit 9bbfa2de7a

@ -312,7 +312,10 @@ class Model:
tokens_used = int(response["usage"]["total_tokens"])
self.usage_service.update_usage(tokens_used)
except:
raise ValueError("The API returned an invalid response: " + str(response['error']['message']))
raise ValueError(
"The API returned an invalid response: "
+ str(response["error"]["message"])
)
async def send_summary_request(self, prompt):
"""

Loading…
Cancel
Save