feat: Add VisionTool and TranscriptionTool with configurable providers - #988
Open
Yaphet-Chen wants to merge 1 commit into
Open
feat: Add VisionTool and TranscriptionTool with configurable providers#988Yaphet-Chen wants to merge 1 commit into
Yaphet-Chen wants to merge 1 commit into
Conversation
…der support - Add VisionTool for image understanding (supports any OpenAI-compatible VLM) - Add SiliconFlow transcription provider (SenseVoice model) - Generic configuration: api_key, api_base, model are configurable - Image preprocessing: auto-analyze images before sending to text-only models - No hardcoded sensitive information
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Features
VisionTool ()
Transcription ()
[-o ORGANIZATION] [-t {openai,azure}]
[--api-version API_VERSION] [--azure-endpoint AZURE_ENDPOINT]
[--azure-ad-token AZURE_AD_TOKEN] [-V]
{api,tools,migrate,grit} ...
positional arguments:
{api,tools,migrate,grit}
api Direct API calls
tools Client side tools for convenience
options:
-h, --help show this help message and exit
-v, --verbose Set verbosity.
-b API_BASE, --api-base API_BASE
What API base url to use.
-k API_KEY, --api-key API_KEY
What API key to use.
-p PROXY [PROXY ...], --proxy PROXY [PROXY ...]
What proxy to use.
-o ORGANIZATION, --organization ORGANIZATION
Which organization to run as (will use your default
organization if not specified)
-t {openai,azure}, --api-type {openai,azure}
The backend API to call, must be
openaiorazure--api-version API_VERSION
The Azure API version, e.g.
'https://learn.microsoft.com/en-us/azure/ai-
services/openai/reference#rest-api-versioning'
--azure-endpoint AZURE_ENDPOINT
The Azure endpoint, e.g.
'https://endpoint.openai.azure.com'
--azure-ad-token AZURE_AD_TOKEN
A token from Azure Active Directory,
https://www.microsoft.com/en-
us/security/business/identity-access/microsoft-entra-
id
-V, --version show program's version number and exit, or
Configuration Example
{ "providers": { "vision": { "api_key": "sk-xxx", "api_base": "https://api.siliconflow.cn/v1", "model": "Qwen/Qwen2.5-VL-72B-Instruct" }, "transcription": { "enabled": true, "provider": "siliconflow", "api_key": "sk-xxx", "api_base": "https://api.siliconflow.cn/v1", "model": "FunAudioLLM/SenseVoiceSmall" } } }Testing
Co-authored-by: Vega vega@nanobot