Mercurial
comparison mrjunejune/inference/BUILD @ 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 | b401627fc49e |
comparison
equal
deleted
inserted
replaced
| 259:667156fcd3e3 | 260:1f9877b637e9 |
|---|---|
| 1 load("@inference_pip//:requirements.bzl", "requirement") | |
| 2 load("@rules_python//python:pip.bzl", "compile_pip_requirements") | |
| 3 load("@rules_python//python:py_binary.bzl", "py_binary") | |
| 4 load("@rules_python//python:py_test.bzl", "py_test") | |
| 5 load(":python_zip.bzl", "python_zip_file") | |
| 6 | |
| 7 compile_pip_requirements( | |
| 8 name = "requirements", | |
| 9 src = "requirements.in", | |
| 10 requirements_txt = "requirements_lock.txt", | |
| 11 ) | |
| 12 | |
| 13 exports_files( | |
| 14 ["litellm_config.yaml"], | |
| 15 visibility = ["//mrjunejune:__pkg__"], | |
| 16 ) | |
| 17 | |
| 18 py_binary( | |
| 19 name = "sdk_probe", | |
| 20 srcs = ["sdk_probe.py"], | |
| 21 deps = [ | |
| 22 requirement("github-copilot-sdk"), | |
| 23 requirement("litellm"), | |
| 24 ], | |
| 25 ) | |
| 26 | |
| 27 py_binary( | |
| 28 name = "litellm_proxy", | |
| 29 srcs = ["litellm_proxy.py"], | |
| 30 data = ["litellm_config.yaml"], | |
| 31 deps = [ | |
| 32 requirement("fastapi"), | |
| 33 requirement("litellm"), | |
| 34 requirement("pyyaml"), | |
| 35 requirement("uvicorn"), | |
| 36 ], | |
| 37 visibility = ["//mrjunejune:__pkg__"], | |
| 38 ) | |
| 39 | |
| 40 py_binary( | |
| 41 name = "copilot_sidecar", | |
| 42 srcs = ["copilot_sidecar.py"], | |
| 43 args = ["$(rootpath @copilot_cli_linux_x86_64//:copilot)"], | |
| 44 data = ["@copilot_cli_linux_x86_64//:copilot"], | |
| 45 deps = [requirement("github-copilot-sdk")], | |
| 46 visibility = ["//mrjunejune:__pkg__"], | |
| 47 ) | |
| 48 | |
| 49 python_zip_file( | |
| 50 name = "copilot_sidecar_zip", | |
| 51 binary = ":copilot_sidecar", | |
| 52 visibility = ["//mrjunejune:__pkg__"], | |
| 53 ) | |
| 54 | |
| 55 python_zip_file( | |
| 56 name = "litellm_proxy_zip", | |
| 57 binary = ":litellm_proxy", | |
| 58 visibility = ["//mrjunejune:__pkg__"], | |
| 59 ) | |
| 60 | |
| 61 filegroup( | |
| 62 name = "production_runtime_binaries", | |
| 63 srcs = [ | |
| 64 ":copilot_sidecar_zip", | |
| 65 ":litellm_proxy_zip", | |
| 66 ], | |
| 67 visibility = ["//mrjunejune:__pkg__"], | |
| 68 ) | |
| 69 | |
| 70 py_test( | |
| 71 name = "sdk_import_test", | |
| 72 srcs = ["sdk_import_test.py"], | |
| 73 deps = [ | |
| 74 requirement("github-copilot-sdk"), | |
| 75 requirement("litellm"), | |
| 76 ], | |
| 77 ) | |
| 78 | |
| 79 py_test( | |
| 80 name = "litellm_config_test", | |
| 81 srcs = ["litellm_config_test.py"], | |
| 82 data = ["litellm_config.yaml"], | |
| 83 deps = [requirement("pyyaml")], | |
| 84 ) | |
| 85 | |
| 86 py_test( | |
| 87 name = "litellm_gateway_test", | |
| 88 srcs = [ | |
| 89 "litellm_gateway_test.py", | |
| 90 "litellm_proxy.py", | |
| 91 ], | |
| 92 main = "litellm_gateway_test.py", | |
| 93 deps = [ | |
| 94 requirement("fastapi"), | |
| 95 requirement("httpx"), | |
| 96 requirement("litellm"), | |
| 97 requirement("pyyaml"), | |
| 98 requirement("uvicorn"), | |
| 99 ], | |
| 100 ) | |
| 101 | |
| 102 py_test( | |
| 103 name = "sdk_runtime_test", | |
| 104 srcs = ["sdk_runtime_test.py"], | |
| 105 args = ["$(rootpath @copilot_cli_linux_x86_64//:copilot)"], | |
| 106 data = ["@copilot_cli_linux_x86_64//:copilot"], | |
| 107 deps = [requirement("github-copilot-sdk")], | |
| 108 ) | |
| 109 | |
| 110 py_test( | |
| 111 name = "sdk_provider_integration_test", | |
| 112 srcs = ["sdk_provider_integration_test.py"], | |
| 113 args = ["$(rootpath @copilot_cli_linux_x86_64//:copilot)"], | |
| 114 data = ["@copilot_cli_linux_x86_64//:copilot"], | |
| 115 deps = [requirement("github-copilot-sdk")], | |
| 116 size = "medium", | |
| 117 timeout = "moderate", | |
| 118 ) | |
| 119 | |
| 120 py_test( | |
| 121 name = "copilot_sidecar_test", | |
| 122 srcs = [ | |
| 123 "copilot_sidecar.py", | |
| 124 "copilot_sidecar_test.py", | |
| 125 ], | |
| 126 main = "copilot_sidecar_test.py", | |
| 127 deps = [requirement("github-copilot-sdk")], | |
| 128 ) |