- Updated API url for list of styles
- Changed
axios
version to 1.7.4 due to fix of CVE-2024-39338
- Enum
FusionBrainErrorCode
includes new valueMODEL_NOT_READY
FusionBrainError
now has optionalbody
field, which being set whenMODEL_NOT_READY
orUNEXPECTED
error appearsAvailabilityInfo
class removed due to being redundantcheckModel
replaced withisReady
, which returns true if model available, otherwise false. With optional second argument it throwsFusionBrainError
object which will include HTTP response body with reason of unavailabilityPrompt
class is no longer used, generation method now accepts 3 parameters: model, prompt, additional optionsGenerationTask
renamed toTask
- Old union type (of generation result)
GenerationTask | AvailabilityInfo
was replaced withGeneration
, which includes booleanaccepted
field and depending on it's value it includes eithertask: Task
field, orreason: string
field
First release