Skip to content

Failed to apply migration 00_use_single_api_key_and_url: Error: Migration failed #468

Open
@yshngg

Description

@yshngg

Issue Description

When I run oco, I encounter the following error:

$ oco
Applying migration 00_use_single_api_key_and_url

└─ Failed to apply migration 00_use_single_api_key_and_url: Error: Migration failed, set AI provider first. Run "oco config set OCO_AI_PROVIDER=<provider>", where <provider> is one of: ollama, openai, anthropic, gemini, azure, test, flowise, groq, mistral, mlx, deepseek

Configuration File

$ cat ~/.opencommit
OCO_AI_PROVIDER=deepseek
OCO_MODEL=deepseek-reasoner
OCO_API_URL=https://api.deepseek.com
OCO_API_KEY=sk-xxx
OCO_TOKENS_MAX_INPUT=40960
OCO_TOKENS_MAX_OUTPUT=4096
OCO_DESCRIPTION=false
OCO_EMOJI=true
OCO_LANGUAGE=en
OCO_MESSAGE_TEMPLATE_PLACEHOLDER=$msg
OCO_PROMPT_MODULE=conventional-commit
OCO_ONE_LINE_COMMIT=true
OCO_TEST_MOCK_TYPE=commit-message
OCO_OMIT_SCOPE=false
OCO_GITPUSH=true
OCO_WHY=false

System Information

$ uname -a
Linux DESKTOP-ITA59KV 6.6.84.1-microsoft-standard-WSL2 #1 SMP PREEMPT_DYNAMIC Tue Apr  1 19:37:06 UTC 2025 x86_64 GNU/Linux

Any help would be appreciated. 🙏

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions