turbo-eth / template-web3-app

⚡️ Web3 App Template built using Next.js, RainbowKit, SIWE, Disco, and more!
https://www.turboeth.xyz
MIT License
334 stars 89 forks source link

Feat: Add OpenAI Integration #63

Closed marthendalnunes closed 1 year ago

marthendalnunes commented 1 year ago

This pull request introduces a new integration with the OpenAI API using a custom React Hook and component. Users can generate AI responses directly from their browser by providing their OpenAI API key and a prompt. The integration accepts the API key either as an environment variable OPENAI_API_KEY or through user input as an argument to the generateAIResponse function from the useOpenAIPrompt hook.

Deploy preview

Changes:

More details on the integration's README

vercel[bot] commented 1 year ago

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

Name Status Preview Comments Updated (UTC)
light-turbo-eth ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 10, 2023 6:06pm
turbo-eth ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 10, 2023 6:06pm
turbo-test ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 10, 2023 6:06pm
vercel[bot] commented 1 year ago

@marthendalnunes is attempting to deploy a commit to the District Labs Team on Vercel.

A member of the Team first needs to authorize it.