Skip to content

Dream example not working #1

@multivac61

Description

@multivac61

I am following along the js course and am unable to get the OpenAI example running.

Here are the steps I ran

  1. Pulled the newest source code via git
  2. cd into dream
  3. run npm i to install the packages
  4. I add my OpenAI API key to a .env file
  5. Running node server.js and navigating to http://localhost:8080/ results in a text saying Cannot GET /
  6. Running npm run dev points me over to http://localhost:3000/ where I can see the correct HTML
  7. Posting a prompt to OpenAI yields an error:

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions