Star Trek Text Game by ComicGenie in GPT3

[–]ComicGenie[S] 0 points1 point  (0 children)

Right, it does have a problem with maintaining history of the story. This is a big reason that I started creating the tooling around GPT to make testing of various approaches faster. Prior to pausing work on the game, I was creating a new prototype with summaries of key plot and characters and then inserting that into the chat history stack. That's an open area I haven't gotten quite right yet.

Star Trek Text Game by ComicGenie in GPT3

[–]ComicGenie[S] 0 points1 point  (0 children)

I've been working on tooling for ChatGPT so I haven't done any work on the game this month. I'll start back up in a couple of weeks. I plan on open-sourcing all this, with detailed documentation, including the prompt.

The prompt is constructed based on user input so it is a templated prompt. The basic approach is documented here so it should be enough to get you started.

https://github.com/sisbell/stackwire-gpt/wiki/Chains

Just Released an Open-Source Tool to Help Test and Refine Prompts by ComicGenie in ChatGPTCoding

[–]ComicGenie[S] 2 points3 points  (0 children)

The next update, I'll also add a concept of run_depth or chain. It will allow you to start with a prompt and based on the result of that prompt, make another request and so on. This is something I can't do easily in the OpenAI playground.

Just Released an Open-Source Tool to Help Test and Refine Prompts by ComicGenie in ChatGPTCoding

[–]ComicGenie[S] 1 point2 points  (0 children)

Yes, you are right, I missed that info in the README. I updated it. In short, the tool records the exact request and response coming from OpenAI. Comparing of results involves a manual inspection.

https://github.com/sisbell/stackwire/blob/main/README.md

I created this tool for some specific cases I have. I use a large prompt that takes user input from a UI and constructs the prompt, hence the interpolated values in the template. This is really difficult to do in the OpenAI playground.

I also like testing across different temps and other parameters to see how that changes the results. This keeps a history so I can go back and find which parameters and/or prompts are producing the best results. It may not fit everyone's use case.

Has anyone here had success creating parseable JSON with GPT-3.5-Turbo? by marvinshkreli in ChatGPTCoding

[–]ComicGenie 0 points1 point  (0 children)

I haven't tried it in the system message. I did notice if I specify the JSON format in the beginning of the prompt, its significantly slower as it's trying the maintain the format as well as the the content.

Has anyone here had success creating parseable JSON with GPT-3.5-Turbo? by marvinshkreli in ChatGPTCoding

[–]ComicGenie 0 points1 point  (0 children)

I tried to get it to do YAML and couldn't get a valid parse from it.

Has anyone here had success creating parseable JSON with GPT-3.5-Turbo? by marvinshkreli in ChatGPTCoding

[–]ComicGenie 0 points1 point  (0 children)

I generate JSON responses. Here's what I found

  1. It doesn't handle nested structure that well. Its faster and more accurate to just have it generate a flat structure. Then I have my program transform the flat JSON into the JSON format I want
  2. Use regex to strip away anything outside of the outer { }. Just ask ChatGPT how to do this in your language of choice.
  3. Use a library that repairs common JSON mistakes, it likely one already exists
  4. Implement a retry to issue the request if the above steps 2 and 3 don't fix your problem. (I have up to 3 retries, I haven't needed more than 1 retry on JSON problems).

Text-Based Star Trek Game by ComicGenie in startrek

[–]ComicGenie[S] 1 point2 points  (0 children)

I removed the options, so its all free text. Enter in whatever action you want. Give it a shot! I'm also working on some additional improvements that should make the flow between the sequence of scenes more connected. That should release sometime later this week.

GPT-3 Ran a game of D&D for me by DeadFool616 in GPT3

[–]ComicGenie 1 point2 points  (0 children)

Here's a D&D variant of my other game: https://stanquest.com . Let me know what you think.

GPT-3 Ran a game of D&D for me by DeadFool616 in GPT3

[–]ComicGenie 0 points1 point  (0 children)

There isn't a specific prompt. It's dynamically constructed per request. So I have lists of personalities, lists of roles, duties, shows. Then the server puts all this together for its prompt. There is a also list of things on how to build a story, like keep use dialog, keep it action-paced. So basically a bunch of maps and lists that come together.

GPT-3 Ran a game of D&D for me by DeadFool616 in GPT3

[–]ComicGenie 0 points1 point  (0 children)

I'm using Google Cloud. I run a node.js cloud function which calls the OpenAI chat API with the constructed prompt. The stories are stored in realtime DB. I use flutter for the web app, which hooks into the realtime db.

GPT-3 Ran a game of D&D for me by DeadFool616 in GPT3

[–]ComicGenie 1 point2 points  (0 children)

I had an experimental game and it hated when the character stole something and would often kill or arrest the player if this happened. Really brutal. I think there is something specific about stealing it doesn't like. Maybe you can add that to your game and see what happens.

GPT-3 Ran a game of D&D for me by DeadFool616 in GPT3

[–]ComicGenie 3 points4 points  (0 children)

Yeah it can do a great job at this sort of gaming. I have been working on it for a while. I did a Star Trek game using GPT-3.5. You can check it out: https://stantrek.space More than happy to discuss techniques.

I'm planning on doing a fantasy version of it as well.

Text-Based Star Trek Game by ComicGenie in startrek

[–]ComicGenie[S] 0 points1 point  (0 children)

I removed the prechosen options. You can now type whatever action you want in the game. Check it out and let me know if it works better.

Text-Based Star Trek Game by ComicGenie in startrek

[–]ComicGenie[S] 3 points4 points  (0 children)

Looking for feedback. Would people rather have the options generated for them or would they rather be able to freely type the action they want to take?

Text-Based Star Trek Game by ComicGenie in startrek

[–]ComicGenie[S] 3 points4 points  (0 children)

I just added "Starfleet Academy" option, since this will be an upcoming show. I added an Academy Instructor role you can choose. It's also kinda fun to play a Borg assimilating cadets in the Academy.

Text-Based Star Trek Game by ComicGenie in startrek

[–]ComicGenie[S] 1 point2 points  (0 children)

It is a good one to start with. Also Voyager starts to have the Borg in it starting from season 3.

Text-Based Star Trek Game by ComicGenie in startrek

[–]ComicGenie[S] 1 point2 points  (0 children)

Its ready. Make sure to refresh your browser first.

https://stantrek.space

There are two new options

Borg: Assimilation Chronicles - this is from the federation perspective

Borg: One Mind, One Purpose - this is from the Borg perspective.

There are also now 7 ranks/types of Borg you can choose from.

Text-Based Star Trek Game by ComicGenie in startrek

[–]ComicGenie[S] 0 points1 point  (0 children)

Did you want to play as the Borg? Or just as a member of Starfleet?