Add support for passing custom headers in clientOptions

TK
8mo ago
+7-0

why

Allow users to pass custom headers in their LLM calls

what changed

Add headers to the model.ts types

test plan


Summary by cubic

Adds headers support to ClientOptions so clients can send custom HTTP headers with every provider request. Useful for auth tokens or routing hints without changing global config.

  • New Features
    • Added headers?: Record<string, string> to ClientOptions in packages/core/lib/v3/types/public/model.ts; headers are sent with each request.
    • No breaking changes; default behavior is unchanged.