Skip to content
This repository was archived by the owner on Aug 27, 2025. It is now read-only.

castle-engine/castle-openai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 

Repository files navigation

Castle Game Engine - Ask OpenAI Assistant

Use OpenAI API from Caste Game Engine. Ask a question, it gets an answer using OpenAI "assistant".

Using Castle Game Engine.

This demo was moved into the core Castle Game Engine repository

Find it in examples/network/ask_openai_assistant subdirectory.

Screenshot

Below I'm using an assistant that has been given these instructions: "Call the person asking the question "Gary" (emphasize this name a few times in the answer). Also, add a cat joke to every answer."

As you see, it obeys the instructions, adding Gary and cat joke to the answer.

Screenshot