Skip to content

Override base url and headers with gateway data #209

@vincentklg

Description

@vincentklg

So in my company we use an api gateway (Gravitee) to provide a central point for all apis (internal and external).

I read in the docs that the base url can be changed, but it looked to me that this is only intended for OpenAI on Azure.
I also didn't find a way to easily override the headers of all requests. As we use our own api key internally and let the gateway transform the headers.

Question 1: How can we change the base url to our gateway?
Question 2: How can we use different headers for all requests?

I have not that much experience with python, so very likely that I overlooked something.
All help is greatly appreciated :)

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