mlx: configurable model load timeout (#14796)

This commit is contained in:
frob
2026-07-14 01:06:29 +02:00
committed by GitHub
parent f1a0ffd621
commit 4f7786d0ba
+1 -1
View File
@@ -70,7 +70,7 @@ func NewClient(modelName string, softContextLength int) (*Client, error) {
// WaitUntilRunning waits for the subprocess to be ready.
func (c *Client) WaitUntilRunning(ctx context.Context) error {
timeout := time.After(2 * time.Minute)
timeout := time.After(envconfig.LoadTimeout())
ticker := time.NewTicker(100 * time.Millisecond)
defer ticker.Stop()