opencompletion.com/research
Claude fd78927e7c
Fix MODEL_X references to use dynamic model registry
When MODEL_X references (MODEL_0, MODEL_1, etc.) are used, the code now
properly looks up actual model names from the dynamic registry (MODEL_CLIENT_MAP)
instead of hardcoding "model" or requiring MODEL_NAME_X environment variables.

Changes:
- app.py: Look up models from MODEL_CLIENT_MAP for the specified endpoint
- guarded_ai.py: Query endpoints for actual model names at initialization
- guarded_ai.py: Use dynamic registry for MODEL_X lookups

This fixes the "model not found" error when using activities with MODEL_X
references like activity37.
2025-11-08 19:58:21 +00:00
..
activity.yaml migrate all activities, there should always be a step without a question 2024-08-01 18:03:00 -04:00
activity0.yaml prompt engineering 2024-08-10 10:22:54 -04:00
activity2.yaml migrate all activities, there should always be a step without a question 2024-08-01 18:03:00 -04:00
activity3.yaml Fix YAML validator and activity file validation errors 2025-08-10 19:38:50 -04:00
activity4.yaml migrate all activities, there should always be a step without a question 2024-08-01 18:03:00 -04:00
activity5.yaml migrate all activities, there should always be a step without a question 2024-08-01 18:03:00 -04:00
activity6.yaml migrate all activities, there should always be a step without a question 2024-08-01 18:03:00 -04:00
activity7.yaml migrate all activities, there should always be a step without a question 2024-08-01 18:03:00 -04:00
activity8.yaml algo for guarding AI on rails. 2024-07-27 08:57:44 -04:00
activity9.yaml algo for guarding AI on rails. 2024-07-27 08:57:44 -04:00
activity10.yaml content_blocks and questions support markdown values. 2024-07-27 15:49:19 -04:00
activity11.yaml algo for guarding AI on rails. 2024-07-27 08:57:44 -04:00
activity12.yaml algo for guarding AI on rails. 2024-07-27 08:57:44 -04:00
activity13-choose-adventure.yaml allow player to go back if they change their minds, less "rails". 2024-07-28 15:07:34 -04:00
activity14-choose-adventure.yaml Fix activity15 coin usage and duplicate messages 2025-08-11 18:35:46 -04:00
activity15-choose-adventure.yaml Fix activity15 coin usage and duplicate messages 2025-08-11 18:35:46 -04:00
activity16.yaml metadata_add and metadata_remove to allow for items to be consumed. 2024-08-04 08:33:55 -04:00
activity17-choose-adventure.yaml Fix YAML validator and activity file validation errors 2025-08-10 19:38:50 -04:00
activity19-rock-paper-scissors.yaml modified: research/activity19-rock-paper-scissors.yaml 2024-08-10 19:23:14 -04:00
activity20-n-plus-1.yaml n+1 in yaml to accumulate integers. 2024-08-10 14:39:37 -04:00
activity21.yaml black and also set_language isn't "correct" anymore. 2024-08-10 17:00:52 -04:00
activity22-odds-or-evens.yaml conditionally run processing_script 2024-08-24 14:31:46 -04:00
activity23-math.yaml modified: app.py 2024-08-11 13:39:30 -04:00
activity24-math-plot.yaml Fix code quality issues from PR review 2025-08-10 16:01:58 -04:00
activity26-magic-8-ball.yaml modified: research/activity26-magic-8-ball.yaml 2024-08-24 09:21:51 -04:00
activity27-tic-tac-toe.yaml Fix code quality issues from PR review 2025-08-10 16:01:58 -04:00
activity28-killer-squares.yaml Fix YAML validator and activity file validation errors 2025-08-10 19:38:50 -04:00
activity29-battleship.yaml Simplify battleship prompts to let AI imagine destruction details 2025-08-11 17:16:06 -04:00
activity29-testship.yaml Simplify battleship prompts to let AI imagine destruction details 2025-08-11 17:16:06 -04:00
activity30-logic-puzzles.yaml Add 5 new educational activities without embedded Python 2025-11-08 17:34:33 +00:00
activity31-scientific-method.yaml Add 5 new educational activities without embedded Python 2025-11-08 17:34:33 +00:00
activity32-world-geography.yaml Add 5 new educational activities without embedded Python 2025-11-08 17:34:33 +00:00
activity33-environmental-science.yaml Add 5 new educational activities without embedded Python 2025-11-08 17:34:33 +00:00
activity34-media-literacy.yaml Add 5 new educational activities without embedded Python 2025-11-08 17:34:33 +00:00
activity35-american-history.yaml Add 3 extensive educational activities (American History, Biblical History, Programming) 2025-11-08 18:47:31 +00:00
activity36-biblical-history.yaml Add 3 extensive educational activities (American History, Biblical History, Programming) 2025-11-08 18:47:31 +00:00
activity37-programming-languages.yaml Change default model from MODEL_1 to MODEL_0 to match stable config 2025-11-08 19:53:46 +00:00
guarded_ai.py Fix MODEL_X references to use dynamic model registry 2025-11-08 19:58:21 +00:00
NEW_ACTIVITIES_PLAN.md Update NEW_ACTIVITIES_PLAN.md with completion status 2025-11-08 19:32:00 +00:00