comparison 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
comparison
equal deleted inserted replaced
259:667156fcd3e3 260:1f9877b637e9
1 import pathlib
2 import unittest
3
4 import yaml
5
6
7 class LiteLlmConfigTest(unittest.TestCase):
8 def test_config_uses_copilot_provider_without_embedded_secret(self) -> None:
9 path = pathlib.Path(__file__).with_name("litellm_config.yaml")
10 config = yaml.safe_load(path.read_text())
11 models = config["model_list"]
12 self.assertEqual(len(models), 1)
13 self.assertEqual(models[0]["model_name"], "jrpg-copilot")
14 self.assertTrue(
15 models[0]["litellm_params"]["model"].startswith(
16 "github_copilot/",
17 )
18 )
19 self.assertEqual(
20 config["general_settings"]["master_key"],
21 "os.environ/LITELLM_MASTER_KEY",
22 )
23
24
25 if __name__ == "__main__":
26 unittest.main()