Skip to content

Commit

Permalink
move model init
Browse files Browse the repository at this point in the history
  • Loading branch information
mahaloz committed Feb 5, 2025
1 parent 79a1d44 commit 216e193
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dailalib/api/litellm/litellm_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ def __init__(
self._use_config = use_config
# default values
self._api_key = None
self.model = model
# default to openai api key if not provided
if api_key or os.getenv("OPENAI_API_KEY"):
self.api_key = api_key or os.getenv("OPENAI_API_KEY")
elif not self._use_config:
self.api_key = None

self.model = model
self.prompt_style = prompt_style
self.fit_to_tokens = fit_to_tokens
self.chat_use_ctx = chat_use_ctx
Expand Down

0 comments on commit 216e193

Please sign in to comment.