Documentation ¶
Index ¶
Constants ¶
View Source
const (
AIProxyClientAK = "AI_PROXY_CLIENT_AK"
)
Variables ¶
This section is empty.
Functions ¶
func GetUserInfo ¶
func GetUserInfo(ctx context.Context) (apistructs.UserInfo, error)
func VerifyArguments ¶
func VerifyArguments(parameters, data json.RawMessage) (err error)
VerifyArguments verifies that the given JSON conforms to the JSON Schema FunctionDefinition.Parameters
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CreateCompletion ¶
func (*Client) HttpClient ¶
func (*Client) URLV1ChatCompletion ¶
type PatchOption ¶
type PatchOption func(option *openai.ChatCompletionRequest)
func PathOptionWithModel ¶
func PathOptionWithModel(model string) PatchOption
func PathOptionWithTemperature ¶
func PathOptionWithTemperature(temperature float32) PatchOption
type RequestOption ¶
func RequestOptionWithResetAPIVersion ¶
func RequestOptionWithResetAPIVersion(version string) RequestOption
Click to show internal directories.
Click to hide internal directories.