feat(models): add provider model scanning#2106
Open
sheetung wants to merge 1 commit intolangbot-app:masterfrom
Open
feat(models): add provider model scanning#2106sheetung wants to merge 1 commit intolangbot-app:masterfrom
sheetung wants to merge 1 commit intolangbot-app:masterfrom
Conversation
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.
概述 / Overview
更改前后对比截图 / Screenshots
检查清单 / Checklist
PR 作者完成 / For PR author
请在方括号间写
x以打勾 / Please tick the box withx项目维护者完成 / For project maintainer
改动重点:
前端新增“扫描添加”模式
后端新增 provider 扫描接口
llm/embedding)扫描逻辑改为 requester 自适配
scan_url配置base_url + /modelsscan_models()已补 requester 级扫描适配
能力推断
visionfunc_call为什么这样改
如何适配新的模型供应商
如果后续要给某个 requester 增加扫描模型能力,建议按下面方式接入:
scan_models(api_key){ "models": [ { "id": "...", "name": "...", "type": "llm" or "embedding", "abilities": ["vision", "func_call"], } ] }scan_models()models列表接口/api/tagstypeabilities