Skip to content

Conversation

@64bit
Copy link
Owner

@64bit 64bit commented Nov 18, 2025

Option to allow per request configurable headers and query parameters.

This enables chaining of methods to optionally provide custom query or headers, for example (only for demonstration):

client
  .chat()
  .query(&[("limit", 10)])?
  .list()
  .await?

or

client
  .chat()
  .header("key", "value")?
  .query(&[("limit", 10)])?
  .list()
  .await?

or

client
  .chat()
  .headers(HeaderMap::new())
  .list()
  .await?

@64bit 64bit merged commit 8b33483 into main Nov 18, 2025
1 check passed
@64bit 64bit deleted the request-options branch November 18, 2025 21:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants