Documentation ¶
Index ¶
Constants ¶
View Source
const ChatURL = "https://api.novita.ai/v3/openai/chat/completions"
Variables ¶
View Source
var NOVITA_DEFAULT = Novita{ Model: "gryphe/mythomax-l2-13b", Temperature: 1.0, TopP: 1.0, Url: ChatURL, }
Functions ¶
This section is empty.
Types ¶
type ChatCompletion ¶
type ChatCompletion struct { ID string `json:"id"` Object string `json:"object"` Created int64 `json:"created"` Model string `json:"model"` Choices []Choice `json:"choices"` Usage Usage `json:"usage"` SystemFingerprint string `json:"system_fingerprint"` }
since we can use Novita AI in OpenAI compatible mode, we use the same types as `openai` package
type GptTool ¶
type GptTool struct { Name string `json:"name"` Description string `json:"description"` Inputs tools.InputSchema `json:"parameters"` }
type GptToolSuper ¶
type Novita ¶
type Novita struct { generic.StreamCompleter Model string `json:"model"` FrequencyPenalty float64 `json:"frequency_penalty"` MaxTokens *int `json:"max_tokens"` // Use a pointer to allow null value PresencePenalty float64 `json:"presence_penalty"` Temperature float64 `json:"temperature"` TopP float64 `json:"top_p"` Url string `json:"url"` }
func (*Novita) RegisterTool ¶
Click to show internal directories.
Click to hide internal directories.