diff --git a/servers/bwh-hk-dc3/litellm/compose.yaml b/servers/bwh-hk-dc3/litellm/compose.yaml index 781ed53..ad6d054 100644 --- a/servers/bwh-hk-dc3/litellm/compose.yaml +++ b/servers/bwh-hk-dc3/litellm/compose.yaml @@ -12,10 +12,14 @@ services: LITELLM_MASTER_KEY: ${LITELLM_MASTER_KEY} volumes: - ./config.yaml:/app/config.yaml:ro + - ./runtime:/runtime entrypoint: ["python3", "-c"] command: - | import base64, os + log_fd = os.open("/runtime/litellm.log", os.O_WRONLY | os.O_CREAT | os.O_TRUNC, 0o600) + os.dup2(log_fd, 1) + os.dup2(log_fd, 2) path = "/tmp/application_default_credentials.json" with open(path, "wb") as credential_file: credential_file.write(base64.b64decode(os.environ["GOOGLE_ADC_B64"])) diff --git a/servers/bwh-hk-dc3/litellm/runtime/.gitignore b/servers/bwh-hk-dc3/litellm/runtime/.gitignore new file mode 100644 index 0000000..d6b7ef3 --- /dev/null +++ b/servers/bwh-hk-dc3/litellm/runtime/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore