mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-09-29 22:56:39 +08:00
21 lines
501 B
Go
21 lines
501 B
Go
package stabilityAI
|
|
|
|
import "strings"
|
|
|
|
type StabilityAIError struct {
|
|
Name string `json:"name,omitempty"`
|
|
Errors []string `json:"errors,omitempty"`
|
|
Success bool `json:"success,omitempty"`
|
|
Message string `json:"message,omitempty"`
|
|
}
|
|
|
|
func (e StabilityAIError) String() string {
|
|
return strings.Join(e.Errors, ", ")
|
|
}
|
|
|
|
type generateResponse struct {
|
|
Image string `json:"image"`
|
|
FinishReason string `json:"finish_reason,omitempty"`
|
|
Seed int `json:"seed,omitempty"`
|
|
}
|