Skip to content

Commit

Permalink
Ruff 🐶
Browse files Browse the repository at this point in the history
  • Loading branch information
anticorrelator committed Mar 20, 2024
1 parent c13ab6b commit 39f3996
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/phoenix-evals/src/phoenix/evals/models/mistralai.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ async def _async_generate(self, prompt: str, **kwargs: Dict[str, Any]) -> str:
invocation_parameters = self.invocation_parameters()
invocation_parameters.update(kwargs)
response = await self._async_rate_limited_completion(
model=self.model,
model=self.model,
messages=self._format_prompt(prompt),
**invocation_parameters,
)
Expand All @@ -127,7 +127,7 @@ async def _async_completion(**kwargs: Any) -> Any:
if http_status and http_status == 429:
raise MistralRateLimitError() from exc
raise exc

return response.choices[0].message.content

return await _async_completion(**kwargs)
Expand Down

0 comments on commit 39f3996

Please sign in to comment.