Remove base_client.py from .fernignore and update client.py#58
Merged
adeelehsan merged 1 commit intomainfrom Apr 14, 2026
Merged
Remove base_client.py from .fernignore and update client.py#58adeelehsan merged 1 commit intomainfrom
adeelehsan merged 1 commit intomainfrom
Conversation
- Remove base_client.py from .fernignore so Fern can regenerate it with all new modules (agents, agent_sessions, agent_events, tools, etc.) - Update client.py to not import OMIT from base_client (define locally) - Add convenience methods on Vectara class: query(), query_stream(), chat(), chat_stream() that delegate to the new Fern-generated queries/chats clients When Fern regenerates, base_client.py will include all API modules. client.py needs the api_key auth path added back to base_client.py after regeneration (Fern only generates token and OAuth paths). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.fernignore: Removesbase_client.pyso Fern can regenerate it with all new API modules (agents, agent_sessions, agent_events, tools, tool_servers, hallucination_correctors, etc.)client.py: Updates the customVectaraclass to work with the new Fern-generatedbase_client.py:OMITlocally instead of importing frombase_client(new Fern version doesn't export it)query(),query_stream(),chat(),chat_stream()that delegate to the Fern-generatedqueriesandchatsclientsWhy
The current
base_client.pywas frozen in.fernignoreand is missing 15+ new API modules that Fern now generates. This causesAttributeError: 'Vectara' object has no attribute 'agents'etc.After merge
base_client.pywith all modulesapi_key-only auth path back to the generatedbase_client.py(Fern only generatestokenandclient_id/client_secretpaths)Test plan
Vectara(api_key=...)workssdk_client.agents,sdk_client.tools, etc. are available🤖 Generated with Claude Code