feat: add ai gateway local core flow
This commit is contained in:
@@ -1,7 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
CONTAINER="${AI_GATEWAY_PG_CONTAINER:-easyai-pgvector}"
|
||||
if [[ -n "${AI_GATEWAY_PG_CONTAINER:-}" ]]; then
|
||||
CONTAINER="$AI_GATEWAY_PG_CONTAINER"
|
||||
elif docker inspect easyai-pgvector >/dev/null 2>&1; then
|
||||
CONTAINER="easyai-pgvector"
|
||||
elif docker inspect postgres >/dev/null 2>&1; then
|
||||
CONTAINER="postgres"
|
||||
else
|
||||
CONTAINER="easyai-pgvector"
|
||||
fi
|
||||
PGUSER="${AI_GATEWAY_PG_USER:-easyai}"
|
||||
DB_NAME="${AI_GATEWAY_DATABASE_NAME:-easyai_ai_gateway}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user