Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResponsesConfig ¶
type ResponsesConfig struct {
Model string
}
type ResponsesModel ¶
type ResponsesModel struct {
*agenticopenai.ResponsesModel
}
func NewModel ¶
func NewModel(ctx context.Context, conf *ResponsesConfig) (*ResponsesModel, error)
NewModel creates a codex subscription compliant responses model.
func (*ResponsesModel) Generate ¶
func (rm *ResponsesModel) Generate(ctx context.Context, input []*schema.AgenticMessage, opts ...model.Option) (*schema.AgenticMessage, error)
Generate overrides the original due to how the codex endpoint only allows for streaming requests and does not support generate. This buffers the stream and returns the chunks as a single message.
Click to show internal directories.
Click to hide internal directories.