Skip to content

Conversation

@jhamon
Copy link
Contributor

@jhamon jhamon commented Jan 14, 2026

Fixes a bug where the host parameter was ignored when customOkHttpClient was also provided in Pinecone.Builder.

The host handling logic was previously within the else block for default OkHttpClient creation, causing the specified host to be bypassed when a customOkHttpClient was provided. This PR moves the host setting logic outside this conditional block, ensuring it is always applied to the ApiClient and config regardless of whether a custom client is used.


Linear Issue: SDK-55

Open in Cursor Open in Web

- Moved host setting logic outside if/else block in Pinecone.Builder.build()
- Host is now set on both config and apiClient regardless of whether customOkHttpClient is provided
- Added tests to verify:
  - Host is respected with customOkHttpClient
  - Host works without customOkHttpClient
  - CustomOkHttpClient works without host
- All new tests pass successfully

Co-authored-by: jhamon <jhamon@pinecone.io>
@cursor
Copy link

cursor bot commented Jan 14, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

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.

3 participants