Skip to content

Is there any way to pass extra_header into openai client? #708

Closed

Description

@Impvest

I saw that python openai client can pass extra_header params. Can it be done with this cs client?

Activity

  1. kayhantolga commented on Apr 22, 2025

    @kayhantolga
    Member

    should be done like this serviceCollection.AddOpenAIService().ConfigureHttpClient(r=>r.DefaultRequestHeaders.Add());

  2. locked and limited conversation to collaborators on Apr 22, 2025
  3. converted this issue into a discussion #710 on Apr 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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