Fix offload model parsing for namespaced model ids#33
Open
kylezhang wants to merge 1 commit into
Open
Conversation
Collaborator
|
感谢修复!解决了 #24 的问题,使用统一的 Thanks! 🙏 |
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.
背景
config.offload.model现在用split("/", 2)拆provider/model。遇到这类模型 ID 时:实际传给模型服务的 model 会变成
deepseek-ai,后面的DeepSeek-V4-Flash被截掉,最终导致接口返回 badRequest。修改
parseModelRef,只按第一个/拆 provider,后面的内容保留为完整 model id。offload.model本地 LLM 初始化改用同一套解析逻辑。contextWindow查找也改用同一套解析,避免带命名空间的模型 ID 匹配失败。clean-context-runner原有导出,避免影响已有引用。验证
Fixes #24