Skip to content

Unable to set .env or any config from git-bash on windows #5

@1000i100

Description

@1000i100

Hi, i've just discover opencoder and the concept look great !

I try to use it with an ollama local model and i found no way to let it use my config.

Here is my coder.config.jsx in the project directory. If i rename it in .env it don't change anything.

import { ollama } from 'ollama-ai-provider'; // read more: https://sdk.vercel.ai/providers/community-providers/ollama
import type { Config } from 'opencoder';
import { webSearch } from "opencoder/mcp"


export default {
  model: ollama('gemma3:1b'),
  mcp: [webSearch()]
} satisfies Config

when i run : bunx opencoder@latest (or bun ai because i've add a script opencoder in package.json and the included dependencies)
I still have Model: claude-3-5-sonnet-20241022
But i shoud have gemma3:1b isn't it ?

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