Documentation
¶
Index ¶
- type GenerateRequestCloudflare
- type GenerateRequestCohere
- type GenerateRequestCohereMessage
- type GenerateRequestGoogle
- type GenerateRequestGoogleContents
- type GenerateRequestGoogleParts
- type GenerateRequestGroq
- type GenerateRequestGroqMessage
- type GenerateRequestOllama
- type GenerateRequestOpenAI
- type GenerateRequestOpenAIMessage
- type GenerateResponseCloudflare
- type GenerateResponseCloudflareResult
- type GenerateResponseCohere
- type GenerateResponseCohereContent
- type GenerateResponseCohereMessage
- type GenerateResponseGoogle
- type GenerateResponseGoogleCandidate
- type GenerateResponseGoogleContent
- type GenerateResponseGooglePart
- type GenerateResponseGroq
- type GenerateResponseGroqChoice
- type GenerateResponseGroqMessage
- type GenerateResponseOllama
- type GenerateResponseOpenAI
- type GenerateResponseOpenAIChoice
- type GenerateResponseOpenAIMessage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GenerateRequestCloudflare ¶
type GenerateRequestCloudflare struct {
Prompt string `json:"prompt"`
}
type GenerateRequestCohere ¶
type GenerateRequestCohere struct { Model string `json:"model"` Messages []GenerateRequestCohereMessage `json:"messages"` }
type GenerateRequestGoogle ¶
type GenerateRequestGoogle struct {
Contents GenerateRequestGoogleContents `json:"contents"`
}
type GenerateRequestGoogleContents ¶
type GenerateRequestGoogleContents struct {
Parts []GenerateRequestGoogleParts `json:"parts"`
}
type GenerateRequestGoogleParts ¶
type GenerateRequestGoogleParts struct {
Text string `json:"text"`
}
type GenerateRequestGroq ¶
type GenerateRequestGroq struct { Model string `json:"model"` Messages []GenerateRequestGroqMessage `json:"messages"` }
type GenerateRequestOllama ¶
type GenerateRequestOpenAI ¶
type GenerateRequestOpenAI struct { Model string `json:"model"` Messages []GenerateRequestOpenAIMessage `json:"messages"` }
type GenerateResponseCloudflare ¶
type GenerateResponseCloudflare struct {
Result GenerateResponseCloudflareResult `json:"result"`
}
type GenerateResponseCloudflareResult ¶
type GenerateResponseCloudflareResult struct {
Response string `json:"response"`
}
type GenerateResponseCohere ¶
type GenerateResponseCohere struct {
Message GenerateResponseCohereMessage `json:"message"`
}
type GenerateResponseCohereMessage ¶
type GenerateResponseCohereMessage struct { Role string `json:"role"` Content []GenerateResponseCohereContent `json:"content"` }
type GenerateResponseGoogle ¶
type GenerateResponseGoogle struct {
Candidates []GenerateResponseGoogleCandidate `json:"candidates"`
}
type GenerateResponseGoogleCandidate ¶
type GenerateResponseGoogleCandidate struct {
Content GenerateResponseGoogleContent `json:"content"`
}
type GenerateResponseGoogleContent ¶
type GenerateResponseGoogleContent struct { Parts []GenerateResponseGooglePart `json:"parts"` Role string `json:"role"` }
type GenerateResponseGooglePart ¶
type GenerateResponseGooglePart struct {
Text string `json:"text"`
}
type GenerateResponseGroq ¶
type GenerateResponseGroq struct { Model string `json:"model"` Choices []GenerateResponseGroqChoice `json:"choices"` }
type GenerateResponseGroqChoice ¶
type GenerateResponseGroqChoice struct {
Message GenerateResponseGroqMessage `json:"message"`
}
type GenerateResponseOllama ¶
type GenerateResponseOllama struct {
Response string `json:"response"`
}
type GenerateResponseOpenAI ¶
type GenerateResponseOpenAI struct { Model string `json:"model"` Choices []GenerateResponseOpenAIChoice `json:"choices"` }
type GenerateResponseOpenAIChoice ¶
type GenerateResponseOpenAIChoice struct {
Message GenerateResponseOpenAIMessage `json:"message"`
}
Click to show internal directories.
Click to hide internal directories.