modelfusion icon indicating copy to clipboard operation
modelfusion copied to clipboard

feat: add gpt4o model

Open lcsvcn opened this issue 1 year ago • 5 comments

lcsvcn avatar May 22 '24 12:05 lcsvcn

Thanks for creating this PR. Please merge this 🙏 or we are gonna have to use something else :(

clharman avatar May 31 '24 14:05 clharman

@clharman i recommend using the ai sdk instead https://sdk.vercel.ai/docs/introduction which supports gpt4o. have you given it a try?

lgrammel avatar May 31 '24 15:05 lgrammel

@lgrammel I will check it out! Still hoping to get 4o in modelfusion until we make the switch. Is modelfusion planned for deprecation in favor of ai sdk?

clharman avatar Jun 01 '24 17:06 clharman

@clharman just a tip if you are so eager to use it before migrating (as we were too), you can run my modelfusion repository by cloning our custom repository.

We are doing that at the moment and we are able to run on production gpt4o successfully, without any issues.

Basically what we did so far is very similar how it is done on the modelfusion examples folder, but you need to do that on your package.json folder and clone the modelfusion repository into your project.

https://github.com/vercel/modelfusion/blob/c53afa504cf5927223b8f5bb86639c96710088ae/examples/chatbot-next-js/package.json#L24

don't forget the pnpm-workspace file: https://github.com/vercel/modelfusion/blob/c53afa504cf5927223b8f5bb86639c96710088ae/pnpm-workspace.yaml#L1-L6

here is how it looks like on our github repository: Screenshot 2024-06-03 at 09 38 43

the downside is that you need to clone the project and build before you can run your project, that adds time when we run our CI/CD.

lcsvcn avatar Jun 03 '24 12:06 lcsvcn

@clharman i recommend using the ai sdk instead https://sdk.vercel.ai/docs/introduction which supports gpt4o. have you given it a try?

Is there a migration guide? Would be nice to know what has to be changed. Just the imports or are there more in depth changes needed?

Hexodus avatar Jun 19 '24 18:06 Hexodus