Skip to content

Support organization in OpenAIClient and default headers #380

Open
@zhoujia74

Description

@zhoujia74

Outline & Motivation

Hi, my company use both api key and organization to authenticate with OpenAI. We also need to pass along some headers. Do you have any plan to support them?

OpenAI(
base_url=BASE_URL,
api_key=OPENAI_API_KEY,
organization=OPENAI_ORG_KEY,
default_headers={"some_header": "some_value"},
)

Pitch

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions