Skip to content

feat: better getBestResponse #25

@erhant

Description

@erhant

Currently, getBestResponse fails when the task is not completed, but this is really bad for UI & UX.

Instead, it should return the task status along with the best response it has at that point.

  • (PendingGeneration, firstGeneration | "")
  • (PendingValidation, firstGeneration)
  • (Completed, highestScoreGeneration)

In the currenty implementation the first two cases throw an error which need to be handled and it sucks.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingenhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions