Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func CreateClient ¶
type PromptParams ¶
type PromptParams struct { Model string `json:"model"` // required Prompt string `json:"prompt"` Suffix string `json:"suffix"` MaxTokens int `json:"max_tokens"` Temperature float64 `json:"temperature"` TopP float64 `json:"top_p"` N int `json:"n"` Stream bool `json:"stream"` LogProbs int `json:"logprobs"` Echo bool `json:"echo"` Stop string `json:"stop"` PressencePenalty float64 `json:"presence_penalty"` FrequencyPenalty float64 `json:"frequency_penalty"` BestOf int `json:"best_of"` // LogitBias map[string]int `json:"logit_bias"` User string `json:"user"` }
func CreatePrompParams ¶
func CreatePrompParams(prompt string) (P PromptParams)
Click to show internal directories.
Click to hide internal directories.