Skip to content

How to use ollama rather than onlin API? #3

@JouJman

Description

@JouJman

Hello, I tried to change self.client fonction on agent-q/core/agent/base.py as:
self.client = openai.OpenAI( base_url="http://localhost:11434", api_key="ollama", )
And the model name into qwen2.5:14b

Whene I enter a command I got:
`Executing command test

Current State: agentq_base
Agent: agentq
Current Thought:
Plan: none
Completed Tasks: none

An error occurred: RetryError[<Future at 0x73858ddb74d0 state=finished raised NotFoundError>]
Retrying in 2 seconds...
An error occurred: RetryError[<Future at 0x73858ddc1910 state=finished raised NotFoundError>]
Retrying in 2 seconds...
An error occurred: RetryError[<Future at 0x73858d3039e0 state=finished raised NotFoundError>]
Max retries reached. Unable to complete the action.
Error executing the command test: RetryError[<Future at 0x73858d3039e0 state=finished raised NotFoundError>]`

How can I solve this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions