The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
ci(e2e): drop trailing newlines from fetched secret values before writing the env
Yuneng Jiangc62643f0cf72
diff --git a/.github/e2e-stack/secrets_to_env.py b/.github/e2e-stack/secrets_to_env.pyindex 25b22555c29..65022931d81 100644--- a/.github/e2e-stack/secrets_to_env.py+++ b/.github/e2e-stack/secrets_to_env.py@@ -8,7 +8,7 @@ secrets_adapter: TypeAdapter[dict[str, str]] = TypeAdapter(dict[str, str])def main() -> int:env_path = Path(sys.argv[1])- secrets = secrets_adapter.validate_json(sys.stdin.read())+ secrets = {key: value.rstrip("\r\n") for key, value in secrets_adapter.validate_json(sys.stdin.read()).items()}unwritable = tuple(key for key, value in secrets.items() if "'" in value or "\n" in value or "\r" in value)diff --git a/.github/workflows/test-e2e-changed.yml b/.github/workflows/test-e2e-changed.ymlindex 7a638801161..b20c84af02d 100644--- a/.github/workflows/test-e2e-changed.yml+++ b/.github/workflows/test-e2e-changed.yml@@ -132,7 +132,7 @@ jobs:| uv run --no-sync python .github/e2e-stack/secrets_to_env.py tests/e2e/.envaws secretsmanager get-secret-value --secret-id litellm-e2e-changed-license \--query SecretString --output text \- | jq -R -s '{"LITELLM_LICENSE": rtrimstr("\n")}' \+ | jq -R -s '{"LITELLM_LICENSE": .}' \| uv run --no-sync python .github/e2e-stack/secrets_to_env.py tests/e2e/.env- name: Boot the stage-mirror stack