handler

package
v0.0.0-...-b98e16c Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2026 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CV

func CV(c *gin.Context)

func ChatCompletions

func ChatCompletions(c *gin.Context)

func Diarize

func Diarize(c *gin.Context)

func Embeddings

func Embeddings(c *gin.Context)

func ImageGenerations

func ImageGenerations(c *gin.Context)

func ListModels

func ListModels(c *gin.Context)

func Reranking

func Reranking(c *gin.Context)

func RetrieveModel

func RetrieveModel(c *gin.Context)

func Speech

func Speech(c *gin.Context)

func Transcriptions

func Transcriptions(c *gin.Context)

Types

type CVRequest

type CVRequest struct {
	Model string `json:"model" binding:"required"`
	Image string `json:"image"`
}

type CVResponse

type CVResponse struct {
	Results []nexa_sdk.CVResult `json:"results"`
}

type ChatCompletionNewParams

type ChatCompletionNewParams openai.ChatCompletionNewParams

type ChatCompletionRequest

type ChatCompletionRequest struct {
	ChatCompletionNewParams
	Stream bool `json:"stream"`

	EnableThink bool  `json:"enable_think"`
	NCtx        int32 `json:"nctx"`
	Ngl         int32 `json:"ngl"`

	ImageMaxLength int32 `json:"image_max_length"`

	TopK              int32   `json:"top_k"`
	MinP              float32 `json:"min_p"`
	RepetitionPenalty float32 `json:"repetition_penalty"`
	GrammarPath       string  `json:"grammar_path"`
	GrammarString     string  `json:"grammar_string"`
	EnableJson        bool    `json:"enable_json"`
}

type DiarizeRequest

type DiarizeRequest struct {
	Model string `json:"model" binding:"required"`
	Audio string `json:"audio"`
}

type EmbeddingNewParams

type EmbeddingNewParams openai.EmbeddingNewParams

type EmbeddingRequest

type EmbeddingRequest struct {
	EmbeddingNewParams

	TaskType string `json:"task_type"`
}

type RerankResponse

type RerankResponse struct {
	Result []float32 `json:"result"`
}

type RerankingRequest

type RerankingRequest struct {
	Model           string   `json:"model" binding:"required"`
	Query           string   `json:"query"`
	Documents       []string `json:"documents"`
	BatchSize       int32    `json:"batch_size"`
	NormalizeMethod string   `json:"normalize_method"`
	Normalize       bool     `json:"normalize"`
}

Jump to

Keyboard shortcuts

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