Documentation
      ¶
    
    
  
    
  
    Index ¶
- func BuildAudioSpeechRequest(model string) (io.Reader, error)
 - func BuildChatCompletionRequest(model string) (io.Reader, error)
 - func BuildEmbeddingsRequest(model string) (io.Reader, error)
 - func BuildImagesGenerationsRequest(modelConfig *model.ModelConfig) (io.Reader, error)
 - func BuildModerationsRequest(model string) (io.Reader, error)
 - func BuildRequest(modelConfig *model.ModelConfig) (io.Reader, mode.Mode, error)
 - func BuildRerankRequest(model string) (io.Reader, error)
 - func DoRequest(req *http.Request) (*http.Response, error)
 - func IsStreamResponse(resp *http.Response) bool
 - func UnmarshalGeneralOpenAIRequest(req *http.Request) (*model.GeneralOpenAIRequest, error)
 - func UnmarshalImageRequest(req *http.Request) (*model.ImageRequest, error)
 - func UnmarshalMap(req *http.Request) (map[string]any, error)
 - func UnmarshalRerankRequest(req *http.Request) (*model.RerankRequest, error)
 - func UnmarshalTTSRequest(req *http.Request) (*model.TextToSpeechRequest, error)
 - type UnsupportedModelTypeError
 
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildImagesGenerationsRequest ¶
func BuildImagesGenerationsRequest(modelConfig *model.ModelConfig) (io.Reader, error)
func BuildRequest ¶
func IsStreamResponse ¶
func UnmarshalGeneralOpenAIRequest ¶
func UnmarshalGeneralOpenAIRequest(req *http.Request) (*model.GeneralOpenAIRequest, error)
func UnmarshalImageRequest ¶
func UnmarshalImageRequest(req *http.Request) (*model.ImageRequest, error)
func UnmarshalRerankRequest ¶
func UnmarshalRerankRequest(req *http.Request) (*model.RerankRequest, error)
func UnmarshalTTSRequest ¶
func UnmarshalTTSRequest(req *http.Request) (*model.TextToSpeechRequest, error)
Types ¶
type UnsupportedModelTypeError ¶
type UnsupportedModelTypeError struct {
	ModelType string
}
    func NewErrUnsupportedModelType ¶
func NewErrUnsupportedModelType(modelType string) *UnsupportedModelTypeError
func (*UnsupportedModelTypeError) Error ¶
func (e *UnsupportedModelTypeError) Error() string
 Click to show internal directories. 
   Click to hide internal directories.