Convert a fixed script into a text RPG game, which can be used in conjunction with Stable Diffusion (webui-api).
The model used in the example is can be downloaded via Civitai.
You can also use vllm's openai_server to mock the openai api, just set OPENAI_API_BASE to your local endpoint.
把一段固定的剧情变为文字rpg,可以搭配stable diffusion游玩。
示例中用到的模型可以在 Civitai 下载。
你也可以使用vllm的openai_server来模拟openai api,只需要把OPENAI_API_BASE设置为你的本地端点即可。