You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enum FusionBrainErrorCode includes new value MODEL_NOT_READY
FusionBrainError now has optional body field, which being set when MODEL_NOT_READY or UNEXPECTED error appears
AvailabilityInfo class removed due to being redundant
checkModel replaced with isReady, which returns true if model available, otherwise false. With optional second argument it throws FusionBrainError object which will include HTTP response body with reason of unavailability
Prompt class is no longer used, generation method now accepts 3 parameters: model, prompt, additional options
GenerationTask renamed to Task
Old union type (of generation result) GenerationTask | AvailabilityInfo was replaced with Generation, which includes boolean accepted field and depending on it's value it includes either task: Task field, or reason: string field