pezzolabs / pezzo

🕹ī¸ Open-source, developer-first LLMOps platform designed to streamline prompt design, version management, instant delivery, collaboration, troubleshooting, observability and more.
https://pezzo.ai
Apache License 2.0
2.54k stars 210 forks source link

feat(proxy): enable pre configured openai base url #312

Open ranst91 opened 3 months ago

ranst91 commented 3 months ago

Fixes 2nd point on https://github.com/pezzolabs/pezzo/issues/295. With a simple env var, you should now be able to configure the base URL of openai. If for some reason (as mentioned in the issue) you have your own "copy" of the API.

Please bear in mind that pezzo assumes an exact API structure other than the base URL. So for an api.openai.com/some/url, if you choose to replace base url, you should have /some/url also in your "own implementation" of the API.

nx-cloud[bot] commented 3 months ago

☁ī¸ Nx Cloud Report

CI is running/has finished running commands for commit 76b7b33ec57ed0bc8718638ac47f30efadad85e1. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this CI Pipeline Execution


✅ Successfully ran 3 targets - [`nx run-many --target=build --all --parallel --maxParallel=3`](https://cloud.nx.app/runs/VpVrCLS55E?utm_source=pull-request&utm_medium=comment) - [`nx run-many --target=test --all --parallel --maxParallel=3`](https://cloud.nx.app/runs/wrgIjVxHvQ?utm_source=pull-request&utm_medium=comment) - [`nx run-many --target=lint --all --parallel --maxParallel=3`](https://cloud.nx.app/runs/upxSocfUtq?utm_source=pull-request&utm_medium=comment)

Sent with 💌 from NxCloud.