Mercurial
diff mrjunejune/inference/litellm_config_test.py @ 260:1f9877b637e9
Add Copilot-powered cyberpunk JRPG chat
Integrate the production JRPG chat with Seobeo streaming, Deita persistence, and a Bazel-managed Copilot SDK and LiteLLM inference stack.
Co-authored-by: Copilot <[email protected]>
| author | MrJuneJune <mrjunejune@users.noreply.github.com> |
|---|---|
| date | Wed, 05 Aug 2026 09:19:41 -0700 |
| parents | |
| children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mrjunejune/inference/litellm_config_test.py Wed Aug 05 09:19:41 2026 -0700 @@ -0,0 +1,26 @@ +import pathlib +import unittest + +import yaml + + +class LiteLlmConfigTest(unittest.TestCase): + def test_config_uses_copilot_provider_without_embedded_secret(self) -> None: + path = pathlib.Path(__file__).with_name("litellm_config.yaml") + config = yaml.safe_load(path.read_text()) + models = config["model_list"] + self.assertEqual(len(models), 1) + self.assertEqual(models[0]["model_name"], "jrpg-copilot") + self.assertTrue( + models[0]["litellm_params"]["model"].startswith( + "github_copilot/", + ) + ) + self.assertEqual( + config["general_settings"]["master_key"], + "os.environ/LITELLM_MASTER_KEY", + ) + + +if __name__ == "__main__": + unittest.main()