Documentation
¶
Index ¶
- func CV(c *gin.Context)
- func ChatCompletions(c *gin.Context)
- func Diarize(c *gin.Context)
- func Embeddings(c *gin.Context)
- func ImageGenerations(c *gin.Context)
- func ListModels(c *gin.Context)
- func Reranking(c *gin.Context)
- func RetrieveModel(c *gin.Context)
- func Speech(c *gin.Context)
- func Transcriptions(c *gin.Context)
- type CVRequest
- type CVResponse
- type ChatCompletionNewParams
- type ChatCompletionRequest
- type DiarizeRequest
- type EmbeddingNewParams
- type EmbeddingRequest
- type RerankResponse
- type RerankingRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChatCompletions ¶
func Embeddings ¶
func ImageGenerations ¶
func ListModels ¶
func RetrieveModel ¶
func Transcriptions ¶
Types ¶
type CVResponse ¶
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 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"`
}
Click to show internal directories.
Click to hide internal directories.