Skip to content

Commit

Permalink
Fix together AI api
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 681457419
Change-Id: I5a1d4d23c210e98dbef1c08c91b29a9a4fd77110
  • Loading branch information
vezhnick authored and copybara-github committed Oct 2, 2024
1 parent 8a0e489 commit 303ba6c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions concordia/language_model/together_ai.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ def sample_text(
timeout=timeout,
stop=terminators,
seed=seed,
stream=False,
)
except together.error.RateLimitError as err:
if attempts >= _NUM_SILENT_ATTEMPTS:
Expand Down Expand Up @@ -195,6 +196,7 @@ def _sample_choice(response: str) -> float:
messages=messages,
seed=seed,
logprobs=1,
stream=False,
)
except together.error.RateLimitError as err:
if attempts >= _NUM_SILENT_ATTEMPTS:
Expand Down

0 comments on commit 303ba6c

Please sign in to comment.