mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-08 15:05:17 +02:00
Merge pull request #1600 from MorpheusI0/feature/support_for_open_webui
Add api key to ollama client to support open webui
This commit is contained in:
commit
cf761ab754
1 changed files with 1 additions and 1 deletions
|
|
@ -193,7 +193,7 @@ class OllamaLLM(BaseLLM):
|
|||
"""
|
||||
|
||||
def __init__(self, config: LLMConfig):
|
||||
self.client = GeneralAPIRequestor(base_url=config.base_url)
|
||||
self.client = GeneralAPIRequestor(base_url=config.base_url, key=config.api_key)
|
||||
self.config = config
|
||||
self.http_method = "post"
|
||||
self.use_system_prompt = False
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue