W
Wasp-lang•7mo ago
Kbk

Hello,

I would like to try mage with gpt4. I created new folder and run wasp new. kubik@KBK:/mnt/c/Users/patku/projects/opensaas/Mageai$ wasp new ct) â–¸ MageCrypto Choose a starter template [1] basic (default) Simple starter template with a single page. [2] todo-ts Simple but well-rounded Wasp app implemented with Typescript & full-stack type safety. [3] saas Everything a SaaS needs! Comes with Auth, ChatGPT API, Tailwind, Stripe payments and more. Check out https://opensaas.sh/ for more details.
[4] embeddings Comes with code for generating vector embeddings and performing vector similarity search. [5] ai-generated 🤖 Describe an app in a couple of sentences and have Wasp AI generate initial code for you. (experimental) ▸
How can i provide api key for chat gpt4? I dont have any folder now
Open SaaS
Free, open-source SaaS boilerplate starter for React & NodeJS.
4 Replies
MEE6
MEE6•7mo ago
Wohooo @Kbk, you just became a Waspeteer level 2!
kapa.ai
kapa.ai•7mo ago
Hi @Kbk. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- To create a new Wasp app using Wasp AI, you can run wasp new in your terminal and pick the AI generation option. During this process, if you haven't set them yet, wasp will ask you to provide your OpenAI API keys (which it will use to query GPT) via environment variables. Here's a step-by-step guide: 1. Run wasp new in your terminal. 2. Choose the "ai-generated" option when asked to choose a starter template. 3. Provide your OpenAI API keys when prompted. Please note that the AI-generated starter template is experimental and you will need to provide your own OpenAI API key to be able to use this template. If you encounter any issues, you can check your .env.server file to ensure that the OPENAI_API_KEY environment variable is set correctly. For more information, you can refer to the Wasp documentation (https://wasp-lang.dev/docs/wasp-ai/creating-new-app#wasp-cli) and the starter templates (https://wasp-lang.dev/docs/project/starter-templates#available-templates) available. Please note that as of the information available, Wasp uses GPT-3 for AI generation. There's no mention of GPT-4 in the provided sources. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @Kbk, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
miho
miho•7mo ago
Did you receive this error message:
Wasp AI uses ChatGPT to generate your project, and therefore requires you to provide it with an OpenAI API key. You can obtain this key via your OpenAI account's user settings (https://platform.openai.com/account/> api-keys). Then, set OPENAI_API_KEY env var to it and wasp CLI will read from it.
To persist the OPENAI_API_KEY env var, add export OPENAI_API_KEY=<yourkeyhere> to your .bash_profile (or .profile or .zprofile or whatever your machine is using), restart your shell, and you should be good to go.
Kbk
KbkOP•7mo ago
yes 🙂 In next step thank you
Want results from more Discord servers?
Add your server