Skip to content

Releases: dmnsea/fusionbrain-api-ts

v0.0.4

29 Sep 19:52
Compare
Choose a tag to compare
  • Updated API url for list of styles

v0.0.3

14 Aug 17:56
Compare
Choose a tag to compare

v0.0.2

14 Aug 17:53
Compare
Choose a tag to compare
  • 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

v0.0.1

14 Aug 17:51
Compare
Choose a tag to compare
First release