hack-dance / island-ai

https://island.novy.work
MIT License
125 stars 11 forks source link

anthropic function calling support #39

Closed roodboi closed 7 months ago

roodboi commented 7 months ago

Initial support for function calling in Anthropic. This PR also includes a small update to schema-stream wherein we explicitly check for the end state of the parser and return early to avoid parsing errors.

changeset-bot[bot] commented 7 months ago

🦋 Changeset detected

Latest commit: aac4e02a04f978af4f4e5c0bec332ba2b19e843f

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages | Name | Type | | ------------- | ----- | | schema-stream | Minor | | llm-polyglot | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

vercel[bot] commented 7 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
island-ai-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 25, 2024 1:57pm
jxnl commented 7 months ago

does this support list of properties or nested objects

roodboi commented 7 months ago

does this support list of properties or nested objects

yeah! Im working on getting it to also stream partially - but lot of gnarly regex - updated now to support big nested data structures - any valid json schema should work @jxnl