Mercurial
comparison mrjunejune/inference/sdk_import_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 importlib.metadata | |
| 2 import unittest | |
| 3 | |
| 4 from copilot import CopilotClient, ProviderConfig | |
| 5 from litellm import LlmProviders | |
| 6 from litellm import LlmProviders | |
| 7 | |
| 8 | |
| 9 class SdkImportTest(unittest.TestCase): | |
| 10 def test_pinned_packages_and_provider_are_available(self) -> None: | |
| 11 self.assertEqual( | |
| 12 importlib.metadata.version("github-copilot-sdk"), | |
| 13 "1.0.8", | |
| 14 ) | |
| 15 self.assertEqual(importlib.metadata.version("litellm"), "1.95.0") | |
| 16 self.assertEqual(importlib.metadata.version("litellm"), "1.95.0") | |
| 17 self.assertEqual(CopilotClient.__name__, "CopilotClient") | |
| 18 self.assertEqual(ProviderConfig.__name__, "ProviderConfig") | |
| 19 self.assertEqual( | |
| 20 LlmProviders.GITHUB_COPILOT.value, | |
| 21 "github_copilot", | |
| 22 ) | |
| 23 self.assertEqual( | |
| 24 LlmProviders.GITHUB_COPILOT.value, | |
| 25 "github_copilot", | |
| 26 ) | |
| 27 | |
| 28 | |
| 29 if __name__ == "__main__": | |
| 30 unittest.main() |