Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 222 commits into
base: main
Choose a base branch
from

Conversation

ranst91
Copy link
Collaborator

@ranst91 ranst91 commented Aug 19, 2024

Fixes 2nd point on #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.

arielweinberger and others added 30 commits May 14, 2023 15:02
* Initial work towards auth

* Get user ID

* WIP

* add migration

* Format

* use email to identify existing uesr

* add 401 Unauthorized handling for bad session

* make refresh work

* format

* formatting

* extract to hook

* add api key to consume example

* add provider API key validation for the Test button

* format and fix linting

* fix consume instructions of integrations

* Fix formatting
* fix: make printable error optional

* chore: update packages

* fix: make error optional
* chore: executors refactor

* more files

* chore: more files

* Update test.ts

* merge

* more fixes

* chore(.github): add issue templates used for creating structured issues (#33)

* chore(readme): update bug form

* chore(packages): update version

* chore: add .github to .nxignore

* format: .github issue templates

* fix(cors): allow k8s load balancer

* chore(npm): bump version

* fix: add the ability to see errors

* fix ai21 bug

* update packages

* fix: build

* attempt to fix th eb

* fix git file name case issues

* attempt to fix the build

* fix typings

* mystery errors

* attemp to fix

* remove pezzo client dep from integrations lib

* fix: report error to pezzo history when consuming

* fix failing build

---------

Co-authored-by: Levi van Noort <[email protected]>
Co-authored-by: Ariel Weinberger <[email protected]>
* fix: error report

* chore: remove console.log

* update package json

---------

Co-authored-by: Ariel Weinberger <[email protected]>
* disable csrf check for development mode

* WIP

* fix api key auth

* Reduce Pezzo Client execution to 1 request

* format

* remove console logs

* add db migration

* WIP

* feat: finish onboarding phase

* fix: race condition

* feat: projects

* remove project selector

* fix formatting

* fix build errors

* add auth context

* lots of stuff

* fix bug and remove unused queries

* fix bug where existing prompt validation does not work

* fix prompt history value to 4 decimal points

* remove console log

* feat: dashboard and metrics (#42)

* basic metric reporting

* relocate prompt tester component

* add schema.graphql to gitignore

* add influxdb env variable to .env + validation

* fix formatting

* remove influx db env variable

* Merge branch 'release/0.0.17-alpha' into feature/metrics

* fix empty state and mismatching headers

* increase gutter and change no data message

* convert name to get

* add linebreak

* remove environment slug

* update docker compose and readme

* remove environmentslug from base executor

* add influxdb volume

* make influx password longer

* update influxdb password

* update influxdb admin password in docker-compose

* fix formatting

* add await to fix race condition

* remove unused imports

* remove settimeout

* fix formatting

* fix: remove env slug & add margins

* fix formatting

---------

Co-authored-by: Itay Elgazar <[email protected]>
* add logger

* add logs to auth guard

* add logger module

* fix auth guard logger by setting scope to request

* use pino instead of pino-http

* remove unused auth methods controller

* add validation and logging to provider api keys resolver

* add validations and logger to environmnents resolver

* add logs to identity module

* improve logs

* add logs to metrics module

* improve logging in prompt environments

* fix logger in prompts resolver

* fix formatting

* update README.md to reflect changes

* fix formatting
kuluruvineeth and others added 21 commits December 15, 2023 01:48
* migrate opensearch to clickhouse

* fix formatting

* add mysql2 to implicitDeps

* fix formatting

* update package json and knexfile

* fix formatting

* test failing migration script

* fix knex migration
* feat: waitlist

* fix rendering
* Update docker-compose.mdx

Minor updates to fast deployment process due to changes in Docker Compose

* Update docs/deployment/docker-compose.mdx

---------

Co-authored-by: Ariel Weinberger <[email protected]>
* fix(encryption): change encryption method to AES-GCM

* fix(sec): remove dummy postgres addresses from compose files

* fix(sec): add .env to gitignore

* fix(sec): put docker-compose specific env files in .env.docker

* fix(sec): add encryption tag to db
* fix: trivial cleanup

* fix: linting
Copy link

nx-cloud bot commented Aug 19, 2024

☁️ Nx Cloud Report

CI is running/has finished running commands for commit 76b7b33. 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

Sent with 💌 from NxCloud.

@arielweinberger arielweinberger force-pushed the main branch 7 times, most recently from a8db765 to a7e47e9 Compare March 9, 2025 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.