Skip to content

Commit

Permalink
Fix incorrect API usage
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 661191024
Change-Id: I04d468faf0b31970b019263284640b8c8cc4e1f6
  • Loading branch information
jagapiou authored and copybara-github committed Aug 9, 2024
1 parent 267516b commit 59ad795
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion concordia/language_model/mistral_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def _chat_text(
temperature = sampling.dynamically_adjust_temperature(
attempts, _MAX_CHAT_ATTEMPTS)
try:
response = self._client.chat(
response = self._client.chat.complete(
model=self._text_model_name,
messages=messages,
temperature=temperature,
Expand Down

0 comments on commit 59ad795

Please sign in to comment.