@@ -103,14 +103,10 @@ func (r *RunCMD) Run(ctx *cliContext.Context) error {
103103 os .MkdirAll (r .BackendsPath , 0750 )
104104 os .MkdirAll (r .ModelsPath , 0750 )
105105
106- systemStateOpts := []system.SystemStateOptions {
107- }
108-
109106 systemState , err := system .GetSystemState (
110107 system .WithBackendSystemPath (r .BackendsSystemPath ),
111108 system .WithModelPath (r .ModelsPath ),
112109 system .WithBackendPath (r .BackendsPath ),
113- systemStateOpts ... ,
114110 )
115111 if err != nil {
116112 return err
@@ -149,12 +145,6 @@ func (r *RunCMD) Run(ctx *cliContext.Context) error {
149145 config .WithMachineTag (r .MachineTag ),
150146 config .WithAPIAddress (r .Address ),
151147 config .WithAgentJobRetentionDays (r .AgentJobRetentionDays ),
152- config .WithTunnelCallback (func (tunnels []string ) {
153- tunnelEnvVar := strings .Join (tunnels , "," )
154- // TODO: this is very specific to llama.cpp, we should have a more generic way to set the environment variable
155- os .Setenv ("LLAMACPP_GRPC_SERVERS" , tunnelEnvVar )
156- xlog .Debug ("setting LLAMACPP_GRPC_SERVERS" , "value" , tunnelEnvVar )
157- }),
158148 }
159149
160150 if r .DisableMetricsEndpoint {
@@ -276,18 +266,6 @@ func (r *RunCMD) Run(ctx *cliContext.Context) error {
276266 opts = append (opts , config .WithOpenResponsesStoreTTL (dur ))
277267 }
278268
279-
280- // Pass backend image fallback tags via system state
281- if r .BackendImagesReleaseTag != "" {
282- systemStateOpts = append (systemStateOpts , system .WithBackendImagesReleaseTag (r .BackendImagesReleaseTag ))
283- }
284- if r .BackendImagesBranchTag != "" {
285- systemStateOpts = append (systemStateOpts , system .WithBackendImagesBranchTag (r .BackendImagesBranchTag ))
286- }
287- if r .BackendDevSuffix != "" {
288- systemStateOpts = append (systemStateOpts , system .WithBackendDevSuffix (r .BackendDevSuffix ))
289- }
290-
291269 // split ":" to get backend name and the uri
292270 for _ , v := range r .ExternalGRPCBackends {
293271 backend := v [:strings .IndexByte (v , ':' )]
0 commit comments