Files
Maksim Totmin 04e3eb8dda feat: use Google Gemini as default vision backend, make provider configurable
- 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
2026-08-04 20:37:40 +07:00

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"
}
}
}
}