providers

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 20, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

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 GenerateRequestCohereMessage

type GenerateRequestCohereMessage struct {
	Role    string `json:"role"`
	Content string `json:"content"`
}

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 GenerateRequestGroqMessage

type GenerateRequestGroqMessage struct {
	Role    string `json:"role"`
	Content string `json:"content"`
}

type GenerateRequestOllama

type GenerateRequestOllama struct {
	Model  string `json:"model"`
	Prompt string `json:"prompt"`
	Stream bool   `json:"stream"`
}

type GenerateRequestOpenAI

type GenerateRequestOpenAI struct {
	Model    string                         `json:"model"`
	Messages []GenerateRequestOpenAIMessage `json:"messages"`
}

type GenerateRequestOpenAIMessage

type GenerateRequestOpenAIMessage struct {
	Role    string `json:"role"`
	Content string `json:"content"`
}

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 GenerateResponseCohereContent

type GenerateResponseCohereContent struct {
	TypeStr string `json:"type"`
	Text    string `json:"text"`
}

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 GenerateResponseGroqMessage

type GenerateResponseGroqMessage struct {
	Role    string `json:"role"`
	Content string `json:"content"`
}

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"`
}

type GenerateResponseOpenAIMessage

type GenerateResponseOpenAIMessage struct {
	Role    string `json:"role"`
	Content string `json:"content"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL