Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use ollama rather than onlin API? #3

Open
JouJman opened this issue Sep 29, 2024 · 3 comments
Open

How to use ollama rather than onlin API? #3

JouJman opened this issue Sep 29, 2024 · 3 comments

Comments

@JouJman
Copy link

JouJman commented Sep 29, 2024

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?

@Hackinside
Copy link

It seems like you might be missing /v1 at the end of your URL. Try changing it to http://localhost:11434/v1 to make sure you're accessing the model correctly.

To check if your model is running, open Windows Powershell and type ollama ps. This will show you a list of active models.

In my case, even after adding /v1 to the end of your URL, I'm still encountering the RetryError with a ValidationError. This suggests there might be something else going on.

Error message:

An error occurred: RetryError[<Future at 0x293a74c3d40 state=finished raised ValidationError>]
Retrying in 2 seconds...
An error occurred: RetryError[<Future at 0x293a74d0f20 state=finished raised ValidationError>]
Retrying in 2 seconds...

@vaibhavkr-dev
Copy link

i am also getting same error with Ollama. Please suggest if there is any support available for ollama to work with this agent-q

@homexkai
Copy link

I'm getting the same error when trying to use groq
Screenshot 2024-10-14 161244

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants