Get Skill Content
client.Skills.Content.Get(ctx, skillID) (*Response, error)
GET/skills/{skill_id}/content
Get Skill Content
Parameters
skillID string
Returns
type SkillContentGetResponse interface{…}
Get Skill 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.Skills.Content.Get(context.TODO(), "skill_123")
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", content)
}