Versions in this module Expand all Collapse all v0 v0.7.6 Jun 15, 2024 Changes in this version + const CloudWebsocketConnectTimeout + const DefaultMaxTokens + const DefaultModel + const DefaultStreamChanSize + func ConvertPrompt(prompt []packet.OpenAIPromptMessageType) []openaiapi.ChatCompletionMessage + func CreateErrorPacket(errStr string) *packet.OpenAIPacketType + func CreateTextPacket(text string) *packet.OpenAIPacketType + func RunCloudCompletionStream(ctx context.Context, clientId string, opts *sstore.OpenAIOptsType, ...) (chan *packet.OpenAIPacketType, *websocket.Conn, error) + func RunCompletion(ctx context.Context, opts *sstore.OpenAIOptsType, ...) ([]*packet.OpenAIPacketType, error) + func RunCompletionStream(ctx context.Context, opts *sstore.OpenAIOptsType, ...) (chan *packet.OpenAIPacketType, error)