功能:迁移 MonkeyAI 模型代理模块 - #1215
Merged
Merged
Conversation
yokowu
force-pushed
the
feat-monkeyai-llmproxy
branch
from
September 4, 2026 06:39
5825055 to
8afeee4
Compare
yokowu
force-pushed
the
feat-monkeyai-llmproxy
branch
from
September 4, 2026 07:07
f1f52af to
33078da
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.
变更内容
internal/proxy模块/v1/chat/completions、/v1/responses和/v1/messages透明转发Resolver将代理凭据和请求模型解析为真实上游配置UsageRecorder交给计费侧处理OptionWithXxx写法internal/app显式注册三个模型代理路由;当前未配置解析器时返回503,待 model/billing 模块提供实现后注入本 PR 当前只实现最小代理与计费接缝,不包含提示词签名、凭据类型分支、SSRF 防护或其他扩展能力。
验证
go test ./...go vet ./...go test -race ./internal/proxy ./internal/app