Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OpenAIRetryClient ¶
type OpenAIRetryClient struct { openai.Client Config struct { Timeout time.Duration MaxAttempts uint } }
func (*OpenAIRetryClient) CreateChatCompletionWithRetry ¶
func (c *OpenAIRetryClient) CreateChatCompletionWithRetry( ctx context.Context, request openai.ChatCompletionRequest, ) (*openai.ChatCompletionResponse, error)
func (*OpenAIRetryClient) CreateEmbeddingsWithRetry ¶
func (c *OpenAIRetryClient) CreateEmbeddingsWithRetry( ctx context.Context, request openai.EmbeddingRequest, ) (*openai.EmbeddingResponse, error)
Click to show internal directories.
Click to hide internal directories.