Non puoi selezionare più di 25 argomenti
Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
|
- package dto
-
- import (
- "github.com/QuantumNous/new-api/types"
- "github.com/gin-gonic/gin"
- )
-
- type Request interface {
- GetTokenCountMeta() *types.TokenCountMeta
- IsStream(c *gin.Context) bool
- SetModelName(modelName string)
- }
-
- type BaseRequest struct {
- }
-
- func (b *BaseRequest) GetTokenCountMeta() *types.TokenCountMeta {
- return &types.TokenCountMeta{
- TokenType: types.TokenTypeTokenizer,
- }
- }
- func (b *BaseRequest) IsStream(c *gin.Context) bool {
- return false
- }
- func (b *BaseRequest) SetModelName(modelName string) {}
|