Skip to content

Commit

Permalink
adjust order to be after init
Browse files Browse the repository at this point in the history
  • Loading branch information
findalexli committed Sep 6, 2024
1 parent d9c04b8 commit 667513f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,16 +119,15 @@ def __init__(
"Reka API key is required. Please provide it as an argument or set the REKA_API_KEY environment variable."
)

self._client = Reka(api_key=api_key)
self._aclient = AsyncReka(api_key=api_key)

super().__init__(
model=model,
temperature=temperature,
max_tokens=max_tokens,
additional_kwargs=additional_kwargs,
callback_manager=callback_manager,
)
self._client = Reka(api_key=api_key)
self._aclient = AsyncReka(api_key=api_key)

@property
def metadata(self) -> LLMMetadata:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,6 @@ def __init__(
"Reka API key is required. Please provide it as an argument or set the REKA_API_KEY environment variable."
)

self._client = Reka(api_key=api_key)
self._aclient = AsyncReka(api_key=api_key)

super().__init__(
model=model,
temperature=temperature,
Expand All @@ -110,6 +107,9 @@ def __init__(
callback_manager=callback_manager,
)

self._client = Reka(api_key=api_key)
self._aclient = AsyncReka(api_key=api_key)

@classmethod
def class_name(cls) -> str:
return "Reka_MultiModal_LLM"
Expand Down

0 comments on commit 667513f

Please sign in to comment.