Documentation
¶
Overview ¶
Package codex provides a subscription-backed OpenAI OAuth vendor that talks to the private Codex backend for supported models.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
*openaivendor.Client
AccessToken *plugins.Setting
RefreshToken *plugins.Setting
AccountID *plugins.Setting
AuthBaseURL *plugins.SetupQuestion
// contains filtered or unexported fields
}
Client implements the Codex-backed AI vendor.
func (*Client) ListModels ¶
ListModels returns the Codex models available to the configured account.
func (*Client) Send ¶
func (c *Client) Send(ctx context.Context, msgs []*chat.ChatCompletionMessage, opts *domain.ChatOptions) (string, error)
Send sends a request to Codex and returns the final text output.
func (*Client) SendStream ¶
func (c *Client) SendStream( ctx context.Context, msgs []*chat.ChatCompletionMessage, opts *domain.ChatOptions, channel chan domain.StreamUpdate, ) error
SendStream sends a request to Codex and streams the response text updates.
Click to show internal directories.
Click to hide internal directories.