Documentation
¶
Index ¶
- func ConvertCreateChatCompletionRequestToOpenAI(body []byte, needStringFormat bool) ([]byte, error)
- func ConvertCreateChatCompletionRequestToProto(body []byte) ([]byte, error)
- func ConvertCreateCompletionRequestToProto(body []byte) ([]byte, error)
- func ConvertCreateEmbeddingRequestToOpenAI(body []byte) ([]byte, error)
- func ConvertCreateEmbeddingRequestToProto(body []byte) ([]byte, error)
- func ConvertCreateModelResponseRequestToOpenAI(body []byte) ([]byte, error)
- func ConvertCreateModelResponseRequestToProto(body []byte) ([]byte, error)
- func ConvertTokenizeRequestToOpenAI(body []byte) ([]byte, error)
- func ConvertTokenizeRequestToProto(body []byte) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertCreateChatCompletionRequestToOpenAI ¶
ConvertCreateChatCompletionRequestToOpenAI converts the request to the OpenAI format.
func ConvertCreateChatCompletionRequestToProto ¶
ConvertCreateChatCompletionRequestToProto converts the request to the protobuf format.
func ConvertCreateCompletionRequestToProto ¶ added in v1.33.0
ConvertCreateCompletionRequestToProto converts the legacy completion request to the protobuf format.
func ConvertCreateEmbeddingRequestToOpenAI ¶
ConvertCreateEmbeddingRequestToOpenAI converts the request to the OpenAI format.
func ConvertCreateEmbeddingRequestToProto ¶
ConvertCreateEmbeddingRequestToProto converts the request to the protobuf format.
func ConvertCreateModelResponseRequestToOpenAI ¶ added in v1.36.0
ConvertCreateModelResponseRequestToOpenAI converts the request to the OpenAI format.
func ConvertCreateModelResponseRequestToProto ¶ added in v1.36.0
ConvertCreateModelResponseRequestToProto converts the request to the protobuf format.
func ConvertTokenizeRequestToOpenAI ¶ added in v1.42.0
ConvertTokenizeRequestToOpenAI converts the request to the OpenAI format.
func ConvertTokenizeRequestToProto ¶ added in v1.42.0
ConvertTokenizeRequestToProto converts a tokenize request to the protobuf format.
Types ¶
This section is empty.