Skip to content

Error: No tokenizer found for model with Ollama #291

Open
@luochen1990

Description

@luochen1990

Describe the bug

Trying to use ollama but failed with Error: No tokenizer found for model, tried to change the model but still same error.

To Reproduce

[openai]
api_base = "http://127.0.0.1:11434/v1"
api_key = ""
model = "llama3.1:latest"
retries = 2
proxy = ""
  1. Run ollama server locally
  2. Exec ollama run llama3.1:latest
  3. Try some talk to Confirm that ollama is running without issue
  4. Edit ~/.config/gptcommit/config.toml and add above config
  5. git add something and Execute git commit
  6. See error

Expected behavior

Works correctly and without error

Screenshots
If applicable, add screenshots to help explain your problem.
Run your command with the RUST_LOG=trace environment variable for the best support

image

image

System Info (please complete the following information):

  • OS: linux (NixOS unstable)
  • Version: gptcommit v0.5.16

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions