Documentation ¶
Index ¶
- Constants
- func LoadModels(providerContent []byte, dirFs embed.FS) (map[string]*Model, error)
- func MapToStruct[T any](tmp map[string]interface{}) *T
- func NewBalanceHandler(id string, base string, timeout time.Duration) (eocontext.BalanceHandler, error)
- func NewBaseNode(id string, ip string, port int) *_BaseNode
- type ClientRequest
- type ClientResponse
- type Message
- type Mode
- type Model
- type ModelMode
- type ModelType
- type Provider
Constants ¶
View Source
const ( FinishReasonUnspecified = "FINISH_REASON_UNSPECIFIED" FinishStop = "STOP" FinishMaxTokens = "MAX_TOKENS" FinishSafety = "SAFETY" FinishRecitation = "RECITATION" FinishLanguage = "LANGUAGE" FinishOther = "OTHER" FinishBlocklist = "BLOCKLIST" FinishProhibitedContent = "PROHIBITED_CONTENT" FinishSPII = "SPII" FinishMalformedFunctionCall = "MALFORMED_FUNCTION_CALL" )
Variables ¶
This section is empty.
Functions ¶
func LoadModels ¶
func MapToStruct ¶
func NewBalanceHandler ¶
func NewBaseNode ¶
Types ¶
type ClientRequest ¶
type ClientRequest struct {
Messages []*Message `json:"messages"`
}
type ClientResponse ¶
Click to show internal directories.
Click to hide internal directories.