fix(backend): inject provider credentials from file
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user