api

package
v1.46.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 27, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertCreateChatCompletionRequestToOpenAI

func ConvertCreateChatCompletionRequestToOpenAI(body []byte, needStringFormat bool) ([]byte, error)

ConvertCreateChatCompletionRequestToOpenAI converts the request to the OpenAI format.

func ConvertCreateChatCompletionRequestToProto

func ConvertCreateChatCompletionRequestToProto(body []byte) ([]byte, error)

ConvertCreateChatCompletionRequestToProto converts the request to the protobuf format.

func ConvertCreateCompletionRequestToProto added in v1.33.0

func ConvertCreateCompletionRequestToProto(body []byte) ([]byte, error)

ConvertCreateCompletionRequestToProto converts the legacy completion request to the protobuf format.

func ConvertCreateEmbeddingRequestToOpenAI

func ConvertCreateEmbeddingRequestToOpenAI(body []byte) ([]byte, error)

ConvertCreateEmbeddingRequestToOpenAI converts the request to the OpenAI format.

func ConvertCreateEmbeddingRequestToProto

func ConvertCreateEmbeddingRequestToProto(body []byte) ([]byte, error)

ConvertCreateEmbeddingRequestToProto converts the request to the protobuf format.

func ConvertCreateModelResponseRequestToOpenAI added in v1.36.0

func ConvertCreateModelResponseRequestToOpenAI(body []byte) ([]byte, error)

ConvertCreateModelResponseRequestToOpenAI converts the request to the OpenAI format.

func ConvertCreateModelResponseRequestToProto added in v1.36.0

func ConvertCreateModelResponseRequestToProto(body []byte) ([]byte, error)

ConvertCreateModelResponseRequestToProto converts the request to the protobuf format.

func ConvertTokenizeRequestToOpenAI added in v1.42.0

func ConvertTokenizeRequestToOpenAI(body []byte) ([]byte, error)

ConvertTokenizeRequestToOpenAI converts the request to the OpenAI format.

func ConvertTokenizeRequestToProto added in v1.42.0

func ConvertTokenizeRequestToProto(body []byte) ([]byte, error)

ConvertTokenizeRequestToProto converts a tokenize request to the protobuf format.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL