Skip to content

Issue using Ollama as provider #8

@anthonypdawson

Description

@anthonypdawson

It's possible my .env file is incorrect as I can't find a good sample but I have an issue immediately

.env file

LLM_PROVIDER=ollama
AGENT_MODE=dom

I get the following error when attempting to do anything

╭ AppClaw ─────────────────────────────────────────────╮
  │                                                      │
  │   ▄▀█ █▀█ █▀█ █▀▀ █   ▄▀█ █ █ █                      │
  │   █▀█ █▀▀ █▀▀ █▄▄ █▄▄ █▀█ ▀▄▀▄▀                      │
  │                                                      │
  │   v0.1.0                                             │
  │                                                      │
  │   AI Mobile Testing Agent                            │
  │                                                      │
  ╰──────────────────────────────────────────────────────╯


  ✓ android device available
  ✓ Appium session created
  ✓ Device connected (544 apps)
  ✗ Fatal error
    Unsupported model version v1 for provider "ollama.chat" and model "llama3.2". AI SDK 5 only supports models that implement specification version "v2".

Based on googling it appears you may need to update the @ai-sdk/ollama package

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