American Young Coder

AYC logo
Loading Events

« All Events

  • This event has passed.

8 PM – AI Agent – Joel

July 31 @ 8:00 pm - 9:00 pm

Today we did:
  1. We did the chatbbot and listing models tutorial.

 

Homework:
  1. Make a new Python file called spaceship_malfunction_game.py, and make a function called create_scenario() that can ask the response from OpenAI for a prompt like this:
  2. Create a very short but potentially funny survival scenario in space. Choose from one of these topics: alien, computer malfunction, AI is confused, space storm, asteroids, black holes, running out of oxygen. Make your response as one complete sentence statement.
  3. Don’t forget to import the API key, limit the tokens to 100, and also choose the 4.1 nano model. The function should also display the number of total tokens used and return the response text.

Details

Date:
July 31
Time:
8:00 pm - 9:00 pm