Skip to content

Commit

Permalink
reported bug to Instructor project
Browse files Browse the repository at this point in the history
  • Loading branch information
fccoelho committed May 31, 2024
1 parent 5c9ff82 commit 70e3197
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions base_agent/llminterface.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,11 @@ def __init__(self, model: str = 'gpt-4o'):
else:
self.llm = instructor.from_openai(
OpenAI(
base_url=os.getenv('OLLAMA_HOST', 'http://127.0.0.1:11434'),
base_url=os.getenv('OLLAMA_HOST', 'http://127.0.0.1:11434/v1'),
api_key=os.getenv('OLLAMA_API_KEY', 'ollama')
),
mode=instructor.Mode.JSON
mode=instructor.Mode.JSON,
stream=False
)

def reset_chat_history(self):
Expand Down

0 comments on commit 70e3197

Please sign in to comment.