Repository navigation
v0.3.0
The first public release.
- Nine functions in two variants with the same names, arguments and results:
drex_noul,drex_choiceand
drex_score(each fortextandjsonbinput),drex_decide,drex_decide_imageanddrex_decide_batch. sql/drex.sql, for self-hosted PostgreSQL: PL/Python onnace-sdk, with the
key in the server's environment anddrex_decide_batchsending up toconcurrencyrequests at once.sql/drex_http.sql, for managed PostgreSQL that offers thehttp
extension, such as Supabase: PL/pgSQL, with the key in adrex_settingstable only its owner can read. It installs
as a role that isn't a superuser, and a caller who can't read the key can't loosen how its requests check TLS.- Both scripts revoke the functions from
PUBLICand from roles that default privileges grant new objects to, such
as Supabase'sanonandauthenticated. - Optional OpenRouter routing, with its own key and app attribution.
- Requests identify themselves as
drex-postgres/0.3.0anddrex-postgres-http/0.3.0inX-Nace-Client.
Install: git clone --branch v0.3.0 https://github.com/nace-ai/drex-postgres.git, then follow the README.