Skip to content

Commit

Permalink
Fix openai.py
Browse files Browse the repository at this point in the history
  • Loading branch information
klntsky committed Nov 19, 2024
1 parent edbd2e7 commit 0cb626f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/src/providers/openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class OpenAILLMProvider(BaseLLMProvider):
Reads OPENAI_API_KEY if a key is not provided.
"""

def __init__(self, api_key: str = None, model: str):
def __init__(self, model: str, api_key: str = None):
"""Initialize the provider with API key and model name."""
super().__init__()
self.api_key = api_key or os.getenv("OPENAI_API_KEY")
Expand Down

0 comments on commit 0cb626f

Please sign in to comment.