安装时探测 model 连通性#3
Open
googs1025 wants to merge 2 commits into
Open
Conversation
Collaborator
|
是否有完成测试 |
Contributor
Author
|
local test: here ➜ MTClaw git:(feat/configurable-routing-timeout) ✗ bash scripts/install.sh
Detected OpenClaw primary model: minimax/MiniMax-M2.7
检测到当前 OpenClaw 主模型: minimax/MiniMax-M2.7
Base URL: https://api.minimaxi.com/anthropic
基础地址: https://api.minimaxi.com/anthropic
Model: gpt-4o
模型: gpt-4o
Use this current OpenClaw primary model as the upstream default? [Y]
是否把当前 OpenClaw 主模型作为默认上游配置? [Y]
> n
Function Router installer
Function Router 安装器
Function Router uses two LLM endpoints:
1. Routing model — a local tool-calling model that decides whether to trigger a tool or pass through to the upstream LLM.
2. Upstream LLM — the main model that generates final user-facing responses. Requests are forwarded here when no tool is matched.
Function Router 会使用两个 LLM 端点:
1. 路由模型:本地工具调用模型,用来判断是否触发工具,还是转发给上游 LLM。
2. 上游 LLM:负责生成最终面向用户的回复。当没有命中工具时,请求会转发到这里。
── Routing model (local tool-calling model) ──
── 路由模型(本地工具调用模型) ──
Base URL (OpenAI-compatible endpoint) [https://api.example.com/v1]
基础地址(兼容 OpenAI 的端点) [https://api.example.com/v1]
> https://api.minimaxi.com/v1
Model name [your-tool-calling-model]
模型名 [your-tool-calling-model]
> MiniMax-M2.7
API key (use 'any' if no auth needed) [any]
API key(如果不需要鉴权可填 any) [any]
> <.........>
✓ Routing model reachable: MiniMax-M2.7
── Upstream LLM (main response model) ──
── 上游大模型(主回复模型) ──
Base URL [https://api.minimaxi.com/anthropic]
基础地址 [https://api.minimaxi.com/anthropic]
> https://api.minimaxi.com/v1
API key
API 密钥
> <.........>
Model name [gpt-4o]
模型名 [gpt-4o]
> MiniMax-M2.7
✓ Upstream model reachable: MiniMax-M2.7
── General ──
── 通用配置 ──
FR listen port [18790]
FR 监听端口 [18790]
>
Tools base directory is the root path used by wrapper scripts via FR_TOOLS_BASE_DIR.
Example: if a script contains
TOOL_PATH="${FR_TOOLS_BASE_DIR}/wallpaper-control/scripts/wallpaper-control.py"
then set this to the directory that contains wallpaper-control/.
Example value: /home/mt/tools
Tools base directory 是 wrapper 脚本通过 FR_TOOLS_BASE_DIR 使用的根目录。
示例:如果脚本里写了
TOOL_PATH="${FR_TOOLS_BASE_DIR}/wallpaper-control/scripts/wallpaper-control.py"
那这里就应填写包含 wallpaper-control/ 的目录。
示例值: /home/mt/tools
Tools base directory [/Users/zhenyu.jiang/.function-router/scripts]
工具根目录 [/Users/zhenyu.jiang/.function-router/scripts]
>
OpenClaw config path [/Users/zhenyu.jiang/.openclaw/openclaw.json]
OpenClaw 配置路径 [/Users/zhenyu.jiang/.openclaw/openclaw.json]
>
Installed session-bridge plugin to /Users/zhenyu.jiang/.openclaw/extensions/session-bridge
已安装 session-bridge 插件到 /Users/zhenyu.jiang/.openclaw/extensions/session-bridge
Install complete.
安装完成。
Config: /Users/zhenyu.jiang/.function-router/config.json
配置: /Users/zhenyu.jiang/.function-router/config.json
Functions: /Users/zhenyu.jiang/.function-router/functions.jsonl
函数定义: /Users/zhenyu.jiang/.function-router/functions.jsonl
Scripts: /Users/zhenyu.jiang/.function-router/scripts
脚本目录: /Users/zhenyu.jiang/.function-router/scripts
Logs: /Users/zhenyu.jiang/.function-router/logs
日志目录: /Users/zhenyu.jiang/.function-router/logs
Tools base dir: /Users/zhenyu.jiang/.function-router/scripts
工具根目录: /Users/zhenyu.jiang/.function-router/scripts
OpenClaw config: /Users/zhenyu.jiang/.openclaw/openclaw.json
OpenClaw 配置: /Users/zhenyu.jiang/.openclaw/openclaw.json
OpenClaw backup: /Users/zhenyu.jiang/.openclaw/openclaw.json.bak.20260525134124
OpenClaw 备份: /Users/zhenyu.jiang/.openclaw/openclaw.json.bak.20260525134124
Primary model: function_router/function-router
主模型: function_router/function-router
Router base_url: http://127.0.0.1:18790/v1
Router 地址: http://127.0.0.1:18790/v1
Session bridge plugin: /Users/zhenyu.jiang/.openclaw/extensions/session-bridge
Session bridge 插件: /Users/zhenyu.jiang/.openclaw/extensions/session-bridge |
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
45c5453 to
e6fef1b
Compare
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.
改动:install.sh 在写配置前先探测一下 routing 和 upstream model 能不能通。