| package llm
|
|
|
| type RequestType string
|
|
|
| const (
|
| RequestTypeChat RequestType = "chat"
|
| RequestTypeEmbedding RequestType = "embedding"
|
| RequestTypeRerank RequestType = "rerank"
|
| RequestTypeImage RequestType = "image"
|
| )
|
|
|
| func (r RequestType) String() string {
|
| return string(r)
|
| }
|
|
|
| type APIFormat string
|
|
|
| const (
|
| APIFormatOpenAIChatCompletion APIFormat = "openai/chat_completions"
|
| APIFormatOpenAIResponse APIFormat = "openai/responses"
|
| APIFormatOpenAIImageGeneration APIFormat = "openai/image_generation"
|
| APIFormatOpenAIImageEdit APIFormat = "openai/image_edit"
|
| APIFormatOpenAIImageVariation APIFormat = "openai/image_variation"
|
| APIFormatOpenAIEmbedding APIFormat = "openai/embeddings"
|
| APIFormatGeminiContents APIFormat = "gemini/contents"
|
| APIFormatAnthropicMessage APIFormat = "anthropic/messages"
|
| APIFormatAiSDKText APIFormat = "aisdk/text"
|
| APIFormatAiSDKDataStream APIFormat = "aisdk/datastream"
|
|
|
| APIFormatJinaRerank APIFormat = "jina/rerank"
|
| APIFormatJinaEmbedding APIFormat = "jina/embeddings"
|
| )
|
|
|
| func (f APIFormat) String() string {
|
| return string(f)
|
| }
|
|
|
| const (
|
|
|
| ToolTypeFunction = "function"
|
|
|
|
|
| ToolTypeImageGeneration = "image_generation"
|
|
|
|
|
| ToolTypeGoogleSearch = "google_search"
|
|
|
|
|
| ToolTypeGoogleCodeExecution = "google_code_execution"
|
|
|
|
|
| ToolTypeGoogleUrlContext = "google_url_context"
|
|
|
|
|
|
|
| ToolTypeAnthropicWebSearch = "web_search_20250305"
|
|
|
|
|
|
|
| AnthropicWebSearchFunctionName = "web_search"
|
| )
|
|
|