Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChatCompletionResponse ¶ added in v0.23.0
type ChatCompletionResponse struct {
Content string `json:"content"`
}
ChatCompletionResponse represents the response from non-streaming chat completion
type ChatMessage ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func (*Service) ChatCompletion ¶ added in v0.23.0
func (s *Service) ChatCompletion(ctx context.Context, messages []ChatMessage, user *model.User) (*ChatCompletionResponse, error)
ChatCompletion performs a non-streaming chat completion
func (*Service) GetAIClient ¶ added in v0.23.0
Click to show internal directories.
Click to hide internal directories.