A llm backend fantasy game. It uses structured output and supports Openai, Anthropic and LM Studio. Gemini support is ending, at the moment it is not working reliable.
https://github.com/HabermannR/Fantasy-Tribe-Game
I am trying to understand structured output from LLMs, and as training I am building a text game.
OpenAI is using pydantic to create objects directly in its beta branch, it's quite nice. Anthropic is a bit more involved, as you need to involve tool calling.
LM Studio 0.3.5 introduced a bug for structured output when using pydantic and enums or literals, I created a workaround.
Also Gemini is not using Pydantic at all, instead TypedDict to create the json scheme.
Hi, I am programming as a hobby since I am seven, and I always wanted to program a game, but never finished anything. I am super fascinated by LLMs, and made a small interactive text-based strategy game, where the player can choice a tribe and then gets presented 3 choices, which will shape the development of the tribe from humble beginnings to god like ascension. Everything is done procedurally by an LLM using structured output. I support OpenAI, Anthropic, and local LLM, tested with LM Studio.
Please take a look and give me some feedback, thanks!
https://github.com/HabermannR/Fantasy-Tribe-Game
No plastic material, only basic contact, no advanced connectors...
This is my problem with all these fancy FEA codes, nice in theory, not fit for industrial models.
if you are interested in mechanical contact, we developed a symmetrical algorithm (no master/slave) and can make it available for you on https://tanatloc.com