Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get Cali running? (SyntaxError: Unexpected token 'T', "To build a"... is not valid JSON) #61

Open
tomsoderlund opened this issue Dec 8, 2024 · 1 comment

Comments

@tomsoderlund
Copy link

I start with

npx cali

I enter my OPENAI_API_KEY, and then answer the question “What do you want to do today?”.

Then I got this:

◇  What do you want to do today?
│  Build a tile drag-and-drop game using react-native-reanimated and
react-native-gesture-handler
│
◇  Done.
undefined:1
To build a tile drag-and-drop game using `react-native-reanimated` and `react-native-gesture-handler`, we need to ensure that these libraries are installed in your project. Let's start by checking if they are already installed. If not, we will proceed to install them.
^

SyntaxError: Unexpected token 'T', "To build a"... is not valid JSON
    at JSON.parse (<anonymous>)
    at file:///Users/tomsoderlund/.npm/_npx/f461be0d0ab30861/node_modules/cali/dist/index.js:554:59
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Node.js v20.10.0
@grabbou
Copy link
Collaborator

grabbou commented Dec 8, 2024

Yeah, this is very annoying side-effect of Vercel AI SDK not supporting both function calling and structured outputs. There's pending rewrite of internals over to a different AI agents framework that will fix this and a bunch of other issues.

Please stand by for the next two days for a overhaul, hopefully gets the job done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants