feat(vision): add the configurable HTTP vision provider

Registers an OpenAI-compatible chat-completions provider into
ctx.imageRecognition with a user-editable baseURL + API key via a settings
section and the credential plane. Logs the secret-free vision request body
as the image-recognition/llm-request session event.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Pine
2026-08-14 10:56:10 +08:00
parent fc180997c6
commit 6409636afb
7 changed files with 485 additions and 0 deletions
@@ -61,4 +61,5 @@ export const KNOWN_SESSION_EVENT_TYPES: ReadonlySet<string> = new Set([
'turn/start',
'user/message',
'web/deepseek-search-llm-request',
'image-recognition/llm-request',
])