rq

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BalanceV1

type BalanceV1 struct {
	UserID string `json:"userID"`
}

func (*BalanceV1) FromQuery

func (b *BalanceV1) FromQuery(r *http.Request) error

func (BalanceV1) GetUserID

func (b BalanceV1) GetUserID() string

type ChatV2

type ChatV2 struct {
	UserID string `json:"userID"`
}

func (ChatV2) GetUserID

func (c ChatV2) GetUserID() string

type CreateUploadURLV1

type CreateUploadURLV1 struct {
	UserID string `json:"userID"`
}

func (CreateUploadURLV1) GetUserID

func (c CreateUploadURLV1) GetUserID() string

type EmbedV1

type EmbedV1 struct {
	UserID string          `json:"userID"`
	Text   string          `json:"text"`
	Model  llm.ServiceName `json:"model"`
}

func (EmbedV1) GetUserID

func (e EmbedV1) GetUserID() string

type GenerateImageV1

type GenerateImageV1 struct {
	UserID string          `json:"userID"`
	Prompt string          `json:"prompt"`
	Model  llm.ServiceName `json:"model"`

	// DALL-E specific fields
	Size string `json:"size,omitempty"`

	// FLUX specific fields
	Width            int    `json:"width,omitempty"`
	Height           int    `json:"height,omitempty"`
	PromptUpsampling string `json:"promptUpsampling,omitempty"`
	Seed             int    `json:"seed,omitempty"`
	SafetyTolerance  int    `json:"safetyTolerance,omitempty"`
}

func (GenerateImageV1) GetUserID

func (g GenerateImageV1) GetUserID() string

type HasUserID

type HasUserID interface {
	GetUserID() string
}

type PresignedURLV1

type PresignedURLV1 struct {
	UserID string `json:"userID"`
	URL    string `json:"url"`
	Folder string `json:"folder"`
}

func (PresignedURLV1) GetUserID

func (p PresignedURLV1) GetUserID() string

type PromptV1

type PromptV1 struct {
	UserID       string          `json:"userID"`
	UserPrompt   string          `json:"userPrompt"`
	SystemPrompt string          `json:"systemPrompt"`
	Model        llm.ServiceName `json:"model,omitempty"`
	ImageURL     string          `json:"imageURL,omitempty"`
	Images       []string        `json:"images,omitempty"`
}

func (PromptV1) GetUserID

func (p PromptV1) GetUserID() string

type SearchExamplesV1

type SearchExamplesV1 struct {
	UserID    string        `json:"userID"`
	Embedding llm.Embedding `json:"embedding"`
	K         int           `json:"k"`
}

func (SearchExamplesV1) GetUserID

func (s SearchExamplesV1) GetUserID() string

type SearchV1

type SearchV1 struct {
	UserID     string `json:"userID"`
	Query      string `json:"query"`
	NumResults int    `json:"numResults"`
}

func (SearchV1) GetUserID

func (s SearchV1) GetUserID() string

Jump to

Keyboard shortcuts

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