previously the environment variables were not being loaded correctly
when using process.env directly. This is a next app and it seems we
need to reference them in env{} within next.config.js first.
b392bc9 Add support for OpenAI organizations
OpenAI supports organizations which is useful if you are part of an org
but also have a personal account via the same email address in the API.
In order to use credit from the appropriate account you need to include
the organization header in calls to OpenAI's API.
I am not exposing this as a configurable option via the UI for now,
though if we find that is required that is a reasonably trivial
addition.
59e8b4d Fix environment variable loading
previously the environment variables were not being loaded correctly when using
process.env
directly. This is a next app and it seems we need to reference them inenv{}
within next.config.js first.b392bc9 Add support for OpenAI organizations
OpenAI supports organizations which is useful if you are part of an org but also have a personal account via the same email address in the API.
In order to use credit from the appropriate account you need to include the organization header in calls to OpenAI's API.
I am not exposing this as a configurable option via the UI for now, though if we find that is required that is a reasonably trivial addition.