tembo-io / pg_vectorize

The simplest way to build AI workloads on Postgres
https://tembo.io/pg_vectorize/
739 stars 33 forks source link

figure out better way to test API integrations #187

Open ChuckHend opened 4 days ago

ChuckHend commented 4 days ago

Interfaces with services like OpenAI, Cohere, etc. require a valid API key. Those keys are stored as github secrets in this repo, and there are tests written that use those secrets. This works for tests running in CI where the branch is in this repository, but when the branch is in a separate repository (i.e. a PR to this repo), the secrets are not accessible and the tests fail. Figure out a better way to run these tests.

omerkincal commented 7 hours ago

Why we are not mock the methods that uses APIs? In a project that i am working we mock every api services we need to use.

ChuckHend commented 4 hours ago

We'll accept a PR for that!