Skip to content

Add non forwarded body + header parameters #214

Closed

Description

@mme

Is your feature request related to a problem? Please describe.
Currently, all parameters are forwarded to OpenAI (or the other underlying LLM).
However passing extra parameters to OpenAI results in an error.

Describe the solution you'd like
Add an additional body + header parameters (specifiable on the frontend), that is not forwarded to the underlying LLM provider.

Activity

  1. added
    feature request
    on Feb 7, 2024
  2. changed the title [-]Add non forwarded body parameters[/-] [+]Add non forwarded body + header parameters[/+] on Feb 8, 2024
  3. mme commented on Feb 8, 2024

    @mme
    ContributorAuthor

    A rough plan would be adding extra parameters to CopilotKitProps, merging them with the body in useChat and later deleting them from forwardedProps in the stream function.

    relevant files:

    • packages/react-core/src/components/copilot-provider/copilotkit-props.tsx
    • packages/react-core/src/hooks/use-chat.ts
    • packages/backend/src/lib/copilotkit-backend.ts
  4. jpr5 commented on Apr 12, 2026

    @jpr5
    Contributor

    The approach for extra params was outlined at the time, but the API surface has changed significantly since then and the specific mechanism is no longer applicable. Closing as stale.

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

    feature request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions