Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
bkorycki committed Dec 10, 2024
1 parent 8282f8b commit 12530f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/mistral/modelgauge/suts/mistral_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def request(self, req: dict):
if self.client.chat.sdk_configuration._hooks.before_request_hooks:
# work around bug in client
self.client.chat.sdk_configuration._hooks.before_request_hooks = []
return self._retry_request(self.client.chat.complete, req)
return self._make_request(self.client.chat.complete, req)

def score_conversation(self, model, prompt, response):
"""Returns moderation object for a conversation."""
Expand All @@ -79,4 +79,4 @@ def score_conversation(self, model, prompt, response):
{"role": "assistant", "content": response},
],
}
return self._retry_request(self.client.classifiers.moderate_chat, req)
return self._make_request(self.client.classifiers.moderate_chat, req)

0 comments on commit 12530f5

Please sign in to comment.