fix: pin native exports to stage execution service
This commit is contained in:
@@ -135,6 +135,9 @@ func (c OpenCodeClient) call(ctx context.Context, method, path string, body any)
|
||||
if c.ArtifactsDir != "" {
|
||||
cmd.Env = append(os.Environ(), ArtifactsEnv+"="+c.ArtifactsDir)
|
||||
}
|
||||
if c.connection != nil {
|
||||
c.connection.PinCLI(cmd)
|
||||
}
|
||||
stdout := &boundedBuffer{limit: maxModelResponse}
|
||||
stderr := &boundedBuffer{limit: 8 << 10}
|
||||
cmd.Stdout = stdout
|
||||
@@ -279,6 +282,12 @@ func (c *OpenCodeClient) Generate(ctx context.Context, config ModelConfig, promp
|
||||
defer connection.Close()
|
||||
c.connection = connection
|
||||
c.Backend = connection.Backend
|
||||
if c.Backend == "v2" {
|
||||
c.Reference, err = connection.Reference()
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
}
|
||||
}
|
||||
directory := c.Directory
|
||||
if directory == "" {
|
||||
|
||||
Reference in New Issue
Block a user