Skip to content

Conversation

@mikestaub
Copy link

Resolves: #534

@vercel
Copy link

vercel bot commented Oct 23, 2025

@mikestaub is attempting to deploy a commit to the tambo ai Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Contributor

@alecf alecf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution, this is great!

I think we need to change the name slightly. Curious @MichaelMilstead or @michaelmagan if you have any preferences here.

* Hook to access the default headers for Tambo API requests
* @returns The default headers object
*/
export const useTamboDefaultHeaders = () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd like to avoid adding an extra hook here since we can get it from useTamboClient()?.defaultHeaders - is there a particular reason to add a separate hook?

queryClient: QueryClient;
/** Whether the session token is currently being updated */
isUpdatingToken: boolean;
/** Additional headers to include in all requests */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the name defaultHeaders implies that it is all the existing header or something, rather than extra headers that we are adding to the existing (default) headers.

How about additionalHeaders or extraHeaders

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alecf I addressed both comments

@vercel
Copy link

vercel bot commented Nov 11, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
showcase Ready Ready Preview Comment Nov 11, 2025 0:49am

@mikestaub
Copy link
Author

Can this be merged now?

MichaelMilstead pushed a commit that referenced this pull request Nov 17, 2025
Co-authored-by: CharlieHelps <charlie@charlielabs.ai>
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.

Pass through custom headers into MCP Server for user specific authentication.

2 participants