Skip to content

Commit

Permalink
fix(mypy): fix OpenAILike linting errors
Browse files Browse the repository at this point in the history
Add the "required" fields. The fields aren't really required, but mypy throws an error for fields
that don't have default values set.
  • Loading branch information
mchill committed Dec 22, 2023
1 parent 59e7bd5 commit 862b4a4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions private_gpt/components/llm/llm_component.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ def __init__(self, settings: Settings) -> None:
api_key=openai_settings.api_key,
model=openai_settings.model,
is_chat_model=True,
max_tokens=None,
api_version="",
)
case "mock":
self.llm = MockLLM()

0 comments on commit 862b4a4

Please sign in to comment.