Skip to content

HTTP 404 Not Found from http://127.0.0.1:11434/api/generate This may mean that you forgot to add '/v1' to the end of your 'apiBase' in config.json. #3752

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

Closed
3 tasks done
Barmaid1076 opened this issue Jan 17, 2025 · 4 comments
Assignees
Labels
area:configuration Relates to configuration options kind:bug Indicates an unexpected problem or unintended behavior priority:medium Indicates medium priority

Comments

@Barmaid1076
Copy link

Before submitting your bug report

Relevant environment info

- OS: windows
- Continue version: latest
- IDE version: latest
- Model: qwen2.5-coder:7b
- config.json:
  
{
  "models": [
    {
      "model": "AUTODETECT",
      "title": "Autodetect",
      "provider": "ollama"
    }
  ],
  "tabAutocompleteModel": {
    "title": "Tab Autocomplete Model",
    "provider": "ollama",
    "model": "qwen2.5-coder:7b",
    "apiBase": "http://localhost:11434"
  },
  "tabAutocompleteOptions": {
    "debounceDelay": 500,
    "maxPromptTokens": 1500,
    "disableInFiles": [
      "*.md"
    ]
  }
}

Description

HTTP 404 Not Found from http://127.0.0.1:11434/api/generate This may mean that you forgot to add '/v1' to the end of your 'apiBase' in config.json.

Image

I think it might be configuration not setup correctly,but i'm not sure what apiBase to use

To reproduce

No response

Log output

@dosubot dosubot bot added area:configuration Relates to configuration options kind:bug Indicates an unexpected problem or unintended behavior priority:medium Indicates medium priority labels Jan 17, 2025
@Patrick-Erichsen
Copy link
Collaborator

Could you try this?

    "apiBase": "http://localhost:11434/v1"
`

@sarmbruster
Copy link

I think this error message can be misleading in some cases. I got the very same message when not having installed the referenced model.
Check with ollama list if qwen2.5-coder:7b is present. Ensure that it's type sensitive. I remember having install Qwen.... which also tiggered this message.

Ollama even sends a helpful message back in the http response but continue seems to convert it into a generic message.

@hieundx
Copy link

hieundx commented Jan 21, 2025

Seems like the 7b model is now named qwen2.5-coder:latest instead of qwen2.5-coder:7b according to OP. So just change that in Continue's config, it will work again.

ollama ps
NAME                    ID              SIZE      PROCESSOR    UNTIL              
qwen2.5-coder:latest    2b0496514337    6.0 GB    100% GPU     6 seconds from now   

@Barmaid1076
Copy link
Author

Could you try this?

    "apiBase": "http://localhost:11434/v1"
`

Yes I have tried that but that's not what caused the problem, but still thank you for your help!

I think this error message can be misleading in some cases. I got the very same message when not having installed the referenced model. Check with ollama list if qwen2.5-coder:7b is present. Ensure that it's type sensitive. I remember having install Qwen.... which also tiggered this message.

Ollama even sends a helpful message back in the http response but continue seems to convert it into a generic message.

Yes it's the model name issue, thank you!

Seems like the 7b model is now named qwen2.5-coder:latest instead of qwen2.5-coder:7b according to OP. So just change that in Continue's config, it will work again.

Solved ! Thank you so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:configuration Relates to configuration options kind:bug Indicates an unexpected problem or unintended behavior priority:medium Indicates medium priority
Projects
None yet
Development

No branches or pull requests

4 participants