Skip to content

Commit

Permalink
Update openai_ai_handler.py (#74)
Browse files Browse the repository at this point in the history
* Update openai_ai_handler.py

Signed-off-by: NxPKG <iconmamundentist@gmail.com>

* Update openai_ai_handler.py

Signed-off-by: NxPKG <iconmamundentist@gmail.com>

* Update openai_ai_handler.py

Signed-off-by: NxPKG <iconmamundentist@gmail.com>

* Update openai_ai_handler.py

Signed-off-by: NxPKG <iconmamundentist@gmail.com>

---------

Signed-off-by: NxPKG <iconmamundentist@gmail.com>
  • Loading branch information
NxPKG authored Nov 7, 2024
1 parent 84e45ba commit 50624be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pr_insight/algo/ai_handlers/openai_ai_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ async def chat_completion(self, model: str, system: str, user: str, temperature:
get_logger().error("Error during OpenAI inference: ", e)
raise
except (RateLimitError) as e:
get_logger().error("Rate limit error during OpenAI inference: ", e)
get_logger().error(f"Rate limit error during OpenAI inference - Model: {self.model}, Messages: {messages}", e)
raise
except (Exception) as e:
get_logger().error("Unknown error during OpenAI inference: ", e)
Expand Down

0 comments on commit 50624be

Please sign in to comment.