fix(backend): inject provider credentials from file

This commit is contained in:
2026-07-12 07:53:22 +02:00
parent ee92ef45ab
commit e40a9d9a56
13 changed files with 280 additions and 15 deletions
+5
View File
@@ -1,6 +1,11 @@
#!/bin/sh
set -eu
if [ -n "${PI_PROVIDER_API_KEY:-}" ]; then
echo "PI_PROVIDER_API_KEY is unsupported; configure THT_MODEL_API_KEY_FILE" >&2
exit 2
fi
load_secret() {
value_name=$1
file_name=$2