- Plugin options: baseURL, apiKey, model, providerID, visionModels
- Default: Google Gemini OpenAI-compatible endpoint, gemini-2.5-flash
- Support {env:VAR} templates and GEMINI_API_KEY fallback
- Legacy fallback to ludmila-ai provider block for existing setups
- vision.md subagent now uses google/gemini-2.5-flash
40 lines
962 B
JSON
40 lines
962 B
JSON
{
|
|
"$schema": "https://opencode.ai/config.json",
|
|
"plugin": [
|
|
"opencode-browser",
|
|
[
|
|
"git+https://git.totmin.ru/en2zmax/vision-bridge.git",
|
|
{
|
|
"baseURL": "https://generativelanguage.googleapis.com/v1beta/openai",
|
|
"apiKey": "{env:GEMINI_API_KEY}",
|
|
"model": "gemini-2.5-flash"
|
|
}
|
|
]
|
|
],
|
|
"provider": {
|
|
"google": {
|
|
"npm": "@ai-sdk/google",
|
|
"name": "Google",
|
|
"options": {
|
|
"apiKey": "{env:GEMINI_API_KEY}"
|
|
},
|
|
"models": {
|
|
"gemini-2.5-flash": {}
|
|
}
|
|
}
|
|
},
|
|
"agent": {
|
|
"vision": {
|
|
"mode": "subagent",
|
|
"model": "google/gemini-2.5-flash",
|
|
"description": "Анализ изображений и скриншотов (OCR текста или разбор UI)",
|
|
"permission": {
|
|
"read": "allow",
|
|
"glob": "allow",
|
|
"external_directory": "allow",
|
|
"edit": "deny",
|
|
"bash": "deny"
|
|
}
|
|
}
|
|
}
|
|
} |