Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LargeLanguageModelRequest ¶
type LargeLanguageModelRequest struct {
Stream bool
SystemPrompt string
UserPrompt []byte
UserPromptType LargeLanguageModelRequestPromptType
UserPromptContentType string
ResponseJsonObjectType reflect.Type
}
LargeLanguageModelRequest represents a request to a large language model
type LargeLanguageModelRequestPromptType ¶
type LargeLanguageModelRequestPromptType byte
const ( LARGE_LANGUAGE_MODEL_REQUEST_PROMPT_TYPE_TEXT LargeLanguageModelRequestPromptType = 0 LARGE_LANGUAGE_MODEL_REQUEST_PROMPT_TYPE_IMAGE_URL LargeLanguageModelRequestPromptType = 1 )
Large Language Model Request Prompt Type
type LargeLanguageModelResponseFormat ¶
type LargeLanguageModelResponseFormat byte
const ( LARGE_LANGUAGE_MODEL_RESPONSE_FORMAT_TEXT LargeLanguageModelResponseFormat = 0 LARGE_LANGUAGE_MODEL_RESPONSE_FORMAT_JSON LargeLanguageModelResponseFormat = 1 )
Large Language Model Response Format
type LargeLanguageModelTextualResponse ¶
type LargeLanguageModelTextualResponse struct {
Content string
}
LargeLanguageModelTextualResponse represents a textual response from a large language model
Click to show internal directories.
Click to hide internal directories.