feat: текстовая игра на основе LLM + interrupt
- GameState (TypedDict) с полями: topic, setup, choices, selected_choice, ending - story_node: генерация завязки → interrupt() → генерация концовки - Цикл обработки __interrupt__ с Command(resume=...) - Поддержка questionary и fallback на input() - requirements.txt, .env.example, README.md
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
OPENAI_API_KEY=your-api-key-here
|
||||
OPENAI_API_BASE=https://api.openai.com/v1
|
||||
OPENAI_MODEL=gpt-4o-mini
|
||||
Reference in New Issue
Block a user