Documentation
¶
Index ¶
- type StabilityAIError
- type StabilityAIProvider
- func (p *StabilityAIProvider) CreateImageGenerations(request *types.ImageRequest) (*types.ImageResponse, *types.OpenAIErrorWithStatusCode)
- func (p *StabilityAIProvider) GetFullRequestURL(requestURL string, modelName string) string
- func (p *StabilityAIProvider) GetRequestHeaders() (headers map[string]string)
- type StabilityAIProviderFactory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StabilityAIError ¶
type StabilityAIError struct {
Name string `json:"name,omitempty"`
Errors []string `json:"errors,omitempty"`
Success bool `json:"success,omitempty"`
Message string `json:"message,omitempty"`
}
func (StabilityAIError) String ¶
func (e StabilityAIError) String() string
type StabilityAIProvider ¶
type StabilityAIProvider struct {
base.BaseProvider
}
func (*StabilityAIProvider) CreateImageGenerations ¶
func (p *StabilityAIProvider) CreateImageGenerations(request *types.ImageRequest) (*types.ImageResponse, *types.OpenAIErrorWithStatusCode)
func (*StabilityAIProvider) GetFullRequestURL ¶
func (p *StabilityAIProvider) GetFullRequestURL(requestURL string, modelName string) string
func (*StabilityAIProvider) GetRequestHeaders ¶
func (p *StabilityAIProvider) GetRequestHeaders() (headers map[string]string)
获取请求头
type StabilityAIProviderFactory ¶
type StabilityAIProviderFactory struct{}
func (StabilityAIProviderFactory) Create ¶
func (f StabilityAIProviderFactory) Create(channel *model.Channel) base.ProviderInterface
创建 StabilityAIProvider
Click to show internal directories.
Click to hide internal directories.