Skip to content

Support openai organization and project #364

@VisargD

Description

@VisargD

OpenAI supports OpenAI-Organization and OpenAI-Project headers which allows users to select organisation and project that needs to be used with the API Key. Gateway needs to add support for it in configs as well as headers:

  • Configs: Add openai_organization and openai_project params which can be used in addition to provider and api_key params.

  • Headers: Add x-portkey-openai-project and x-portkey-openai-organization headers which can used along with x-portkey-provider and Authorization header.

OpenAI Docs Ref: https://platform.openai.com/docs/api-reference/organizations-and-projects-optional

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions