Skip to content

[Bug]: list command does not work if default model not available in provider #21

@cschreib

Description

@cschreib

Description

list command requires default model to be available in the model provider

Steps to reproduce

  1. Install ollama, do not pull any model (or only pull one model other than the default gemma3:12b)
  2. Setup codefox to point to ollama
  3. Run codefox list

Expected behavior

Should show an empty list

Actual behavior

Failed to connect to mode: model 'gemma3:12b' not found (status code: 404)

Environment

  • OS: Ubuntu 22.04
  • Python version: 3.11
  • CodeFox version: 0.4.6
  • Provider: ollama
  • Model: N/A

Config (optional)

If relevant, paste the non-sensitive parts of .codefox.yml (e.g. provider, model name, review settings). Do not paste .codefoxenv or any API keys.

provider: ollama
model:
  name: llama3.1:8b
  temperature: 0.2
  max_tokens: null
  base_url: http://ollama:11434
review:
  severity: medium
  max_issues: null
  suggest_fixes: true
  diff_only: true
baseline:
  enable: true
ruler:
  security: true
  performance: true
  style: true
prompt:
  system: null
  extra: null
  strict_facts: true

Logs / output (optional)

> codefox list
Failed to connect to mode: model 'gemma3:12b' not found (status code: 404)

Additional context

Any other details that might help (repo type, size of diff, first time vs recurring, etc.).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions