Retrieve container file content
client.Containers.Files.Content.Get(ctx, containerID, fileID) (*Response, error)
GET/containers/{container_id}/files/{file_id}/content
Retrieve Container File Content
Parameters
containerID string
fileID string
Returns
type ContainerFileContentGetResponse interface{…}
Retrieve container file content
package main
import (
"context"
"fmt"
"github.com/openai/openai-go"
"github.com/openai/openai-go/option"
)
func main() {
client := openai.NewClient(
option.WithAPIKey("My API Key"),
)
content, err := client.Containers.Files.Content.Get(
context.TODO(),
"container_id",
"file_id",
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", content)
}
<binary content of the file>
Returns Examples
<binary content of the file>