miurla / morphic

An AI-powered search engine with a generative UI
https://morphic.sh
Apache License 2.0
4.97k stars 1.16k forks source link

feat: enhance tools to use 'tool' from 'ai' package #237

Closed kuizuo closed 1 week ago

kuizuo commented 2 weeks ago

Use the tool function from the 'ai' package to make the TS type smarter

vercel[bot] commented 2 weeks ago

@kuizuo is attempting to deploy a commit to the morphic Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] commented 2 weeks ago

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

Name Status Preview Comments Updated (UTC)
morphic ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 21, 2024 7:46am
miurla commented 2 weeks ago

error: Unhandled Rejection: Error: .append(): The current value doesn't support appending data.

The version of the AI SDK has been updated, so we need to fix another error. I'll address it in a separate PR, so let's merge this one once that is done.

kuizuo commented 2 weeks ago

thank you!

miurla commented 2 weeks ago

@kuizuo Please pull the main branch as the PR(#240 ) for the AI SDK update has been merged.

kuizuo commented 2 weeks ago

@miurla I have updated the dependency to the same version as the main branch.

miurla commented 2 weeks ago

@kuizuo Updating dependencies alone is not enough; the errors need to be resolved. Could you merge the main branch(upstream)?

kuizuo commented 1 week ago

@kuizuo Updating dependencies alone is not enough; the errors need to be resolved. Could you merge the main branch(upstream)?

@miurla I have merged the main branch (upstream) into this branch. Please check the latest commit.But the current commit history is not very beautiful, and it may have to squash and merge.