mirror of
https://github.com/neondatabase/neon.git
synced 2025-12-27 08:09:58 +00:00
## Problem Some extensions do not contain tests, which can be easily run on top of docker-compose or staging. ## Summary of changes Added the pg_regress based tests for `pg_tiktoken`, `pgx_ulid`, `pg_rag` Now they will be run on top of docker-compose, but I intend to adopt them to be run on top staging in the next PRs
50 lines
834 B
Plaintext
50 lines
834 B
Plaintext
-- API key function tests
|
|
SELECT rag.anthropic_set_api_key('test_key');
|
|
anthropic_set_api_key
|
|
-----------------------
|
|
|
|
(1 row)
|
|
|
|
SELECT rag.anthropic_get_api_key();
|
|
anthropic_get_api_key
|
|
-----------------------
|
|
test_key
|
|
(1 row)
|
|
|
|
SELECT rag.openai_set_api_key('test_key');
|
|
openai_set_api_key
|
|
--------------------
|
|
|
|
(1 row)
|
|
|
|
SELECT rag.openai_get_api_key();
|
|
openai_get_api_key
|
|
--------------------
|
|
test_key
|
|
(1 row)
|
|
|
|
SELECT rag.fireworks_set_api_key('test_key');
|
|
fireworks_set_api_key
|
|
-----------------------
|
|
|
|
(1 row)
|
|
|
|
SELECT rag.fireworks_get_api_key();
|
|
fireworks_get_api_key
|
|
-----------------------
|
|
test_key
|
|
(1 row)
|
|
|
|
SELECT rag.voyageai_set_api_key('test_key');
|
|
voyageai_set_api_key
|
|
----------------------
|
|
|
|
(1 row)
|
|
|
|
SELECT rag.voyageai_get_api_key();
|
|
voyageai_get_api_key
|
|
----------------------
|
|
test_key
|
|
(1 row)
|
|
|