Skip to content
This repository was archived by the owner on Sep 18, 2025. It is now read-only.
This repository was archived by the owner on Sep 18, 2025. It is now read-only.

Error: Failed to process events: request config: base url is not set #270

@mendesbarreto

Description

@mendesbarreto

Description

I am trying to use opencode with copilot but I am receiving the follwoing message

Image

I tried the follwoing installation methods:

go install github.com/opencode-ai/opencode@latest
#AND
brew install opencode-ai/tap/opencode 

This is my machine specs

Model: MacBook Pro
Chip: Apple M1 Max
Total Number of Cores: 10 (8 performance and 2 efficiency)
Memory: 64 GB
OS: Sequoia 15.5

Config File:

{
  "data": {
    "directory": ".opencode"
  },
  "providers": {
    "anthropic": {
      "apiKey": "your-api-key",
      "disabled": true
    },
    "copilot": {
      "apiKey": "<HERE IS MY GITHUB TOKEN>",
      "disabled": false
    },
    "groq": {
      "apiKey": "your-api-key",
      "disabled": true
    },
    "openai": {
      "apiKey": "your-api-key",
      "disabled": true
    },
    "openrouter": {
      "apiKey": "your-api-key",
      "disabled": true
    }
  },
  "lsp": {
    "go": {
      "enabled": false,
      "command": "gopls",
      "args": null,
      "options": null
    },
    "typescript": {
      "enabled": false,
      "command": "vtsls",
      "args": [
        "--stdio"
      ],
      "options": null
    }
  },
  "agents": {
    "coder": {
      "model": "claude-3.7-sonnet",
      "maxTokens": 5000,
      "reasoningEffort": ""
    },
    "task": {
      "model": "claude-3.7-sonnet",
      "maxTokens": 5000,
      "reasoningEffort": ""
    },
    "title": {
      "model": "claude-3.7-sonnet",
      "maxTokens": 80,
      "reasoningEffort": ""
    }
  },
  "tui": {
    "theme": "opencode"
  },
  "shell": {
    "path": "/bin/zsh",
    "args": [
      "-l"
    ]
  },
  "autoCompact": true
}

FYI:

@bryanvaz I know implemented the copilot provider, maybe you can point me on the right direction here...

I am trying to debug opencode, and it's seems like when coilot provider tries to call the openai.Client, the base URL is not set here:

copilotStream := c.client.Chat.Completions.NewStreaming(

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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