Skip to content

Commit

Permalink
fix: fixed bug in FinishReasonOtherError ctor (#161)
Browse files Browse the repository at this point in the history
  • Loading branch information
adubovik committed Dec 20, 2024
1 parent 569b750 commit 21f9b62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aidial_adapter_vertexai/chat/gemini/adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ def create_generation_config(params: ModelParameters) -> GenerationConfig:

class FinishReasonOtherError(Exception):
def __init__(self, msg: str, retriable: bool):
super().__init__(self.msg)
self.msg = msg
self.retriable = retriable
super().__init__(self.msg)


class GeminiChatCompletionAdapter(ChatCompletionAdapter[GeminiPrompt]):
Expand Down

0 comments on commit 21f9b62

Please sign in to comment.