stabilityAI

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

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

创建 StabilityAIProvider

Jump to

Keyboard shortcuts

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