Skip to content

Commit

Permalink
Merge pull request #21 from NousResearch/ollama-base-url-1
Browse files Browse the repository at this point in the history
add `ollama_base_url` setting
  • Loading branch information
shroominic authored Feb 11, 2024
2 parents 9ade305 + 66a88e6 commit 03d5db0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/funcchain/backend/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,12 @@ class FuncchainSettings(BaseSettings):
retry_parse: int = 3
retry_parse_sleep: float = 0.1

# KEYS
# KEYS / URLS
openai_api_key: Optional[str] = None
azure_api_key: Optional[str] = None
anthropic_api_key: Optional[str] = None
google_api_key: Optional[str] = None
ollama_base_url: str = "http://localhost:11434"

# MODEL KWARGS
verbose: bool = False
Expand Down Expand Up @@ -58,7 +59,9 @@ def openai_kwargs(self) -> dict:
}

def ollama_kwargs(self) -> dict:
return {}
return {
"base_url": self.ollama_base_url
}

def llamacpp_kwargs(self) -> dict:
return {
Expand Down

0 comments on commit 03d5db0

Please sign in to comment.