Skip to content

[Feature Request]: The plugin configuration should support custom Google gemini, and the name should be customizable. #673

@yolio2003

Description

@yolio2003

Problem

  1. The model name needs to match the key in model.ts; otherwise, an error will occur.
  2. npm cannot be configured, and even interfaces such as opt.createGoogle cannot be used within the plugin.
  3. ctrl + t cannot switch the thinking mode of claude model

Solution

{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "my-anthropic": {
      "name": "my-Anthropic",
      "npm": "@ai-sdk/anthropic",
      "options": {
        "baseURL": "https://llm-proxy.xx.com/aws",
        "apiKey": "user-key-xxx"
      },
      "models": {
        "claude-opus-4-5-20251101": {
          "name": "my-claude-opus-4-5",
          "limit": {
            "context": 200000,
            "output": 64000
          }
        },
        "claude-sonnet-4-5-20250929": {
          "name": "my-claude-sonnet-4-5",
          "limit": {
            "context": 200000,
            "output": 64000
          }
        },
        "claude-haiku-4-5-20251001": {
          "name": "my-claude-haiku-4-5",
          "limit": {
            "context": 200000,
            "output": 64000
          }
        }
      }
    },
    "my-openai": {
      "npm": "@ai-sdk/openai",
      "name": "my - OpenAI",
      "options": {
        "baseURL": "https://llm-proxy.xx.com/aws",
        "apiKey": "user-key-xxx"
      },
      "models": {
        "gpt-5.2": {
          "name": "my-gpt-5.2",
          "options": {
            "include": ["reasoning.encrypted_content"],
            "store": false,
            "reasoningEffort": "high",
            "textVerbosity": "high",
            "reasoningSummary": "auto"
          },
          "limit": {
            "context": 200000,
            "output": 64000
          }
        }
      }
    },
    "my-google": {
      "npm": "@ai-sdk/google",
      "name": "my-Google",
      "options": {
        "baseURL": "https://llm-proxy.xx.com/google/v1beta",
        "apiKey": "user-key-xxx"
      },
      "models": {
        "gemini-3-pro-preview": {
          "name": "my-Gemini-3-Pro",
          "limit": {
            "context": 200000,
            "output": 64000
          }
        },
        "gemini-3-flash-preview": {
          "name": "my-Gemini-3-Flash",
          "limit": {
            "context": 200000,
            "output": 64000
          }
        }
      }
    }
  },
  "plugin": ["oh-my-opencode"]
}

This is the available configuration for opencode, which is also very difficult to configure.

However, in the end, all three major types of models can run, and it supports custom names and npm. It is hoped that neovate can refer to this and provide support.

Alternatives

No response

Importance

i cannot use @neovate/code without it

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions