Skip to content

Commit

Permalink
black formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Robinsane committed Mar 27, 2024
1 parent e0533a4 commit 05ff156
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion private_gpt/components/llm/custom/ollama.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ class CustomOllama(Ollama):
)

def __init__(self, *args, **kwargs) -> None:
keep_alive = kwargs.pop('keep_alive', '5m') # fetch keep_alive from kwargs or use 5m if not found.
# fetch keep_alive from kwargs or use 5m if not found.
keep_alive = kwargs.pop("keep_alive", "5m")
super().__init__(*args, **kwargs)
self.keep_alive = keep_alive

Expand Down
1 change: 1 addition & 0 deletions private_gpt/settings/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ class OllamaSettings(BaseModel):
description="Time elapsed until ollama times out the request. Default is 120s. Format is float. ",
)


class AzureOpenAISettings(BaseModel):
api_key: str
azure_endpoint: str
Expand Down

0 comments on commit 05ff156

Please sign in to comment.