hdresearch / nolita

Work with web-enabled agents quickly — whether running a quick task or bootstrapping a full-stack product.
https://nolita.ai
MIT License
88 stars 6 forks source link

release: 2.1.1 #106

Closed matildepark closed 3 months ago

matildepark commented 3 months ago

Target this branch for instructor change!

Currently holding this PR for this annoying warn message during npx nolita runs (while running it as a node script, i.e. node ./dist/bin/index.js):

⠸ The current ariaTree does not contain information about the latest blog post. We need to navigate to the blog section to find this information.[Instructor:WARN] 2024-07-09T20:46:01.225Z: response model: GenerateActionStep - Validation issues:  Validation error: Array must contain at least 1 element(s) at "objectiveComplete.command"  - Attempt:  0  - Max attempts:  5

Related code:

https://github.com/instructor-ai/instructor-js/blob/1ff06f6fdad63988fafa2edddcab88ab572c9fcb/src/instructor.ts#L123-L124

https://github.com/instructor-ai/instructor-js/blob/1ff06f6fdad63988fafa2edddcab88ab572c9fcb/src/instructor.ts#L263-L271

matildepark commented 3 months ago

This is just waiting on union typing stuff then.