Skip to content

Commit a20ef60

Browse files
author
DeepShield Dev
committed
fix: remove LLMModel from server — model routing is gateway's job
Server is a transparent proxy, not a model selector. The agent sends a model alias (e.g. chat/smart/fast) and the gateway routes it to the appropriate concrete model.
1 parent f079f6d commit a20ef60

2 files changed

Lines changed: 0 additions & 7 deletions

File tree

controller/http/router/agent/zerotrace_chat_proxy.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,6 @@ type ChatProxyConfig struct {
2727
// or the gateway endpoint "http://172.19.108.188:8080/v1/chat/completions".
2828
LLMURL string
2929

30-
// LLMModel is the model name pushed to agents via heartbeat.
31-
// The agent does not choose the model — the server decides.
32-
LLMModel string
33-
3430
// Optional Bearer token for the upstream LLM / gateway.
3531
LLMAPIKey string
3632

@@ -42,7 +38,6 @@ type ChatProxyConfig struct {
4238
func defaultChatProxyConfig() ChatProxyConfig {
4339
return ChatProxyConfig{
4440
LLMURL: defaultLLMURL,
45-
LLMModel: defaultLLMModel,
4641
RateLimitRPM: 30,
4742
RateWindow: time.Minute,
4843
}

controller/http/router/agent/zerotrace_lifecycle.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,6 @@ type HeartbeatResponse struct {
188188
ServerTime int64 `json:"server_time"`
189189
ConfigChanged bool `json:"config_changed"`
190190
LLMEndpoint string `json:"llm_endpoint,omitempty"` // server-side chat proxy URL for uplink LLM
191-
LLMModel string `json:"llm_model,omitempty"` // model name decided by server
192191
}
193192

194193
// handleHeartbeat refreshes synced_controller_at so the agent is shown connected.
@@ -262,7 +261,6 @@ func (a *ZeroTrace) handleHeartbeat(c *gin.Context) {
262261
ServerTime: time.Now().Unix(),
263262
ConfigChanged: configChanged,
264263
LLMEndpoint: llmEndpoint,
265-
LLMModel: proxyCfg.LLMModel,
266264
})
267265
}
268266

0 commit comments

Comments
 (0)