feat(adapters): Hermes 适配器(第二批 Harness 第三发) - #5
Merged
Conversation
…、YAML 保注释回写) - config.yaml 写 custom_providers ApiFlux 条目(base_url /v1 + key_env=APIFLUX_API_KEY + 全量模型字符串列表,hermes 会自行从 /v1/models 刷新) - key 只进 ~/.hermes/.env(行级 upsert 照抄 hermes _write_env_vars,0600),完全避开 OPENAI_API_KEY 撞名 - yaml Document API 回写保用户注释(优于 hermes 官方 save_config 的行为);不可解析时不动文件、打印手动 snippet - --model 时置 model.provider=apiflux + model.default;路径尊重 HERMES_HOME - venv 隔离冒烟通过(hermes-agent 0.19.0);.scratch issue 07 闭环
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.
第二批 Harness(.scratch issue 03/07)之 Hermes(NousResearch/hermes-agent)。无本机安装,验证走 scratchpad venv 隔离冒烟(已通过)。
设计(读源码定案)
custom_providers:命名列表而非泛型provider: custom:{name: ApiFlux, base_url, key_env: APIFLUX_API_KEY, models: [...]},provider 引用apiflux即可匹配——完全避开泛型路径的OPENAI_API_KEY撞名~/.hermes/.env(行级 upsert 照抄 hermes 自己的_write_env_vars,0600),config.yaml 无密钥yamlDocument API)——hermes 官方 save_config 是 yaml.safe_dump 重生成不保注释,我们比官方好;不可解析时不动文件、打印手动 snippet--model时置model.provider: apiflux+model.default;路径尊重HERMES_HOMEyaml(eemeli/yaml,纯 JS)验证
bun test103 pass(hermes 适配器 14 例 + init 接线 1 例)hermes -z与--provider apiflux --model claude-haiku-4-5两发 SMOKE-OK;冒烟目录已删--model <id>会撞别家 catalog 同名模型,显式指定需配--provider apiflux;默认模型路径不受影响发版
合并后 bump 0.6.0 + tag(薄壳 dependencies 同步)。