Skip to content

BloodyFish/OpenAlchemy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Open Alchemy 🧪

This is an open-source project inspired by the game Infinite Craft.
It is programmed in Python and uses the NiceGUI Python Library for the UI.

  • It uses Google's Gemini instead of Llama 2 like Infinite Craft

Getting Started

In order to play, you need a Gemini API key. You can get one from Google AI Studio.
Once you have an API key, you can either set it as an enviroment variable on your local machine, or you can go into the recipe.py file and add your api key where it says client = genai.Client()

  • Ex: client = genai.Client(api_key= 'GEMINI_API_KEY')

Now you can run and play!

Game Customization

Right now, the system prompt (found in the recipe.py file) is as follows:

'''Create a new material based on two given materials output your answer like:    
                {
                    "material_list" : ["FIRE", "EARTH"],
                    "output" : {
                        "name" : "VOLCANO,
                        "emoji" "🌋"
                    }
                },
                
                but make sure it has no extra words, only the curly braces and the contents, DO NOT WRITE IT LIKE:
                ```json
                {
                    "material_list" : ["FIRE", "EARTH"],
                    "output" : {
                        "name" : "VOLCANO,
                        "emoji" : "🌋"
                    }
                }
                ```, make sure that the materials created are common items, things, people, foods, places, buildings'''

You can edit this if you like!

Showcase

SHOWCASE_VIDEO

About

Open source version of Infinite Craft using Gemni API

Resources

Stars

1 star

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages