mirror of
https://github.com/ollama/ollama.git
synced 2026-03-27 02:58:43 +07:00
launch: remove warning for default policy (#14830)
This commit is contained in:
@@ -313,9 +313,9 @@ func LaunchIntegration(ctx context.Context, req IntegrationLaunchRequest) error
|
|||||||
}
|
}
|
||||||
|
|
||||||
var policy LaunchPolicy
|
var policy LaunchPolicy
|
||||||
|
// TUI does not set a policy, whereas ollama launch <app> does as it can have flags which change the behavior
|
||||||
if req.Policy == nil {
|
if req.Policy == nil {
|
||||||
policy = defaultLaunchPolicy(isInteractiveSession(), false)
|
policy = defaultLaunchPolicy(isInteractiveSession(), false)
|
||||||
fmt.Fprintln(os.Stderr, "Launch policy not found from request, using default")
|
|
||||||
} else {
|
} else {
|
||||||
policy = *req.Policy
|
policy = *req.Policy
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user