Skip to content

Commit

Permalink
Add max_input_size property
Browse files Browse the repository at this point in the history
  • Loading branch information
smokestacklightnin committed Feb 1, 2024
1 parent 79689b2 commit 16ddbc0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ragna/assistants/_ai21labs.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,7 @@ class AI21LabsAssistant(ApiAssistant):
@classmethod
def display_name(cls) -> str:
return f"AI21Labs/jurassic-2-{cls._MODEL_TYPE}"

@property
def max_input_size(self) -> int:
return self._CONTEXT_SIZE

0 comments on commit 16ddbc0

Please sign in to comment.