e3c8979e8d
- cmd/fn/doctor.go - cmd/fn/main.go - cpp/apps/primitives_gallery/playground/tables/CMakeLists.txt - cpp/apps/primitives_gallery/playground/tables/data_table.cpp - cpp/apps/primitives_gallery/playground/tables/data_table_logic.cpp - cpp/apps/primitives_gallery/playground/tables/data_table_logic.h - cpp/apps/primitives_gallery/playground/tables/self_test.cpp - cpp/apps/primitives_gallery/playground/tables/tql.cpp - cpp/apps/primitives_gallery/playground/tables/viz.cpp - cpp/apps/primitives_gallery/playground/tables/viz.h - ... Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
19 lines
773 B
Go
19 lines
773 B
Go
package ml
|
|
|
|
// GenerationConfig parametriza una solicitud de generacion de imagen.
|
|
// Espejo JSON-compatible de GenerationConfig_py_ml: los tags json coinciden
|
|
// con los campos snake_case del dataclass Python para roundtrip sin perdida.
|
|
type GenerationConfig struct {
|
|
Prompt string `json:"prompt"`
|
|
NegativePrompt string `json:"negative_prompt,omitempty"`
|
|
Seed int64 `json:"seed"`
|
|
Steps int `json:"steps"`
|
|
CfgScale float64 `json:"cfg_scale"`
|
|
Sampler string `json:"sampler"`
|
|
Width int `json:"width"`
|
|
Height int `json:"height"`
|
|
Model ModelRef `json:"model"`
|
|
Loras []LoraRef `json:"loras,omitempty"`
|
|
ClipSkip *int `json:"clip_skip,omitempty"`
|
|
}
|