Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NormalizeToolName ¶
Types ¶
type Client ¶
type Client interface { InvokeModel(ctx context.Context, input *bedrockruntime.InvokeModelInput, optFns ...func(*bedrockruntime.Options)) (*bedrockruntime.InvokeModelOutput, error) ConverseStream(ctx context.Context, params *bedrockruntime.ConverseStreamInput, optFns ...func(*bedrockruntime.Options)) (*bedrockruntime.ConverseStreamOutput, error) }
type ModelProvider ¶
type ModelProvider struct {
// contains filtered or unexported fields
}
func NewWithClient ¶
func NewWithClient(client Client) *ModelProvider
func (*ModelProvider) GenerateImage ¶
func (p *ModelProvider) GenerateImage(ctx context.Context, req *estellm.GenerateImageRequest, w estellm.ResponseWriter) error
func (*ModelProvider) GenerateText ¶
func (p *ModelProvider) GenerateText(ctx context.Context, req *estellm.GenerateTextRequest, w estellm.ResponseWriter) error
func (*ModelProvider) SetClilent ¶
func (p *ModelProvider) SetClilent(client Client)
type StableDiffusionXLRequset ¶
type StableDiffusionXLRequset struct { TextPrompts []StableDiffusionXLTextPrompt `json:"text_prompts"` Height int `json:"height,omitempty"` Width int `json:"width,omitempty"` StylePreset string `json:"style_preset,omitempty"` Seed int64 `json:"seed,omitempty"` CFGScale float64 `json:"cfg_scale,omitempty"` Steps int `json:"steps,omitempty"` Sampler string `json:"sampler,omitempty"` Samples int `json:"samples,omitempty"` Extra json.RawMessage `json:"extra,omitempty"` }
type StableDiffusionXLResponse ¶
type StableDiffusionXLResponse struct { Result string `json:"result"` Artifacts []StableDiffusionXLArtifact `json:"artifacts"` }
Click to show internal directories.
Click to hide internal directories.