Skip to content

Update client.py for new Fern SDK signatures#61

Merged
adeelehsan merged 1 commit intomainfrom
fix/update-client-for-new-fern-signatures
Apr 21, 2026
Merged

Update client.py for new Fern SDK signatures#61
adeelehsan merged 1 commit intomainfrom
fix/update-client-for-new-fern-signatures

Conversation

@adeelehsan
Copy link
Copy Markdown
Contributor

Summary

Updates client.py convenience methods to match the new Fern-generated SDK signatures.

Changes

  • Removed request_timeout and request_timeout_millis parameters from:
    • Vectara.query(), Vectara.query_stream()
    • Vectara.chat(), Vectara.chat_stream()
    • Vectara.create_chat_session()
    • ChatSession.__init__(), ChatSession.chat(), ChatSession.chat_stream()

These parameters are no longer accepted by the Fern-generated query/chat clients. Timeouts should now be set via request_options={"timeout_in_seconds": N}.

Why

The new Fern SDK (with auth: any config from docs PR #565) changed method signatures — request_timeout and request_timeout_millis were removed from all generated clients. Our custom client.py was passing these through, causing TypeError: got an unexpected keyword argument.

Tested

Full SDK test suite: 178 passed, 0 failed, 3 skipped against staging with the preview-generated SDK.

Merge order

  1. Merge this PR
  2. Trigger Fern SDK generation (release 0.4.3)
  3. Update api_test_suite requirements to vectara>=0.4.3

🤖 Generated with Claude Code

Remove request_timeout and request_timeout_millis from convenience
methods (query, query_stream, chat, chat_stream, create_chat_session)
and ChatSession class. These parameters are no longer accepted by the
Fern-generated SDK — timeouts are now set via request_options.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@adeelehsan adeelehsan merged commit 08f20fa into main Apr 21, 2026
3 checks passed
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.

1 participant