Skip to content

llama2 example doesn't work AI_APICallError: registry.ollama.ai/library/llama2:latest does not support tools #303

@kevincobain2000

Description

@kevincobain2000

Setup

Doc link: https://opencode.ai/docs/models/#local

╰─$ cat opencode.json
{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "ollama": {
      "npm": "@ai-sdk/openai-compatible",
      "options": {
        "baseURL": "http://localhost:11434/v1"
      },
      "models": {
        "llama2": {}
      }
    }
  }
}
╰─$ ollama ls
NAME               ID              SIZE      MODIFIED
llama2:latest      78e26419b446    3.8 GB    12 minutes ago

╰─$ curl http://localhost:11434/v1  
404 page not found

╰─$ curl http://localhost:11434
Ollama is running

Image

Image

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