toeverything / AFFiNE

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.
https://affine.pro
Other
35.25k stars 2.31k forks source link

​gpt-4-vision-preview deprecated make it real #7325

Open mambari opened 3 days ago

mambari commented 3 days ago

What happened?

When I am using make it real, it's not working.

Log server : [Nest] 117 - 06/25/2024, 10:16:03 AM ERROR [Sse] Internal server error Error: 404 The model gpt-4-vision-preview has been deprecated, learn more here: https://platform.openai.com/docs/deprecations at APIError.generate (file:///app/node_modules/openai/error.mjs:50:20) at OpenAI.makeStatusError (file:///app/node_modules/openai/core.mjs:268:25) at OpenAI.makeRequest (file:///app/node_modules/openai/core.mjs:311:30) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async OpenAIProvider.generateTextStream (file:///app/dist/plugins/copilot/providers/openai.js:132:24)

When I check the code, it's used here: image

And specificaly for make it real (Also used for explaining the image btw) image

Distribution version

Linux

What browsers are you seeing the problem on if you're using web version?

Chrome

Are you self-hosting?

Relevant log output

No response

Anything else?

I use the Canary version on docker and I pulled the image today (25/06/2024) image: ghcr.io/toeverything/affine-graphql:canary

Similar issue found here: https://github.com/tldraw/make-real-starter/issues/30 quote:

I think I resolved this by updating: model: 'gpt-4-vision-preview', to : model: 'gpt-4o',

affine-issue-bot[bot] commented 3 days ago

Issue Status: 🆕 *Untriaged

*🆕 Untriaged**

The team has not yet reviewed the issue. We usually do it within one business day. Docs: https://github.com/toeverything/AFFiNE/blob/canary/docs/issue-triaging.md

This is an automatic reply by the bot.