miurla / morphic

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

Title: [Fix #94] Updated AI Sdk #128

Closed DhrishP closed 2 months ago

DhrishP commented 2 months ago

Updated the vercel AI sdk and changed the necessary imports for AI sdk version 3.1.3

vercel[bot] commented 2 months ago

@DhrishP 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 months 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 May 9, 2024 6:51am
miurla commented 2 months ago

Failed to compile.
--
15:41:31.590 |  
15:41:31.590 | ./app/actions.tsx:255:3
15:41:31.590 | Type error: Object literal may only specify known properties, and 'unstable_onGetUIState' does not exist in type '{ actions: {}; initialAIState?: AIState \| undefined; initialUIState?: UIState \| undefined; onSetAIState?: OnSetAIState<AIState> \| undefined; onGetUIState?: OnGetUIState<...> \| undefined; }'.
15:41:31.590 |  
15:41:31.590 | 253 \|   initialUIState,
15:41:31.590 | 254 \|   initialAIState,
15:41:31.590 | > 255 \|   unstable_onGetUIState: async () => {
15:41:31.590 | \|   ^
15:41:31.591 | 256 \|     'use server'
15:41:31.591 | 257 \|
15:41:31.591 | 258 \|     const aiState = getAIState()
15:41:31.626 | error: script "build" exited with code 1
15:41:31.629 | Error: Command "bun run build" exited with 1