Skip to content

Remove base_client.py from .fernignore and update client.py#58

Merged
adeelehsan merged 1 commit intomainfrom
fix/enable-fern-base-client-regen
Apr 14, 2026
Merged

Remove base_client.py from .fernignore and update client.py#58
adeelehsan merged 1 commit intomainfrom
fix/enable-fern-base-client-regen

Conversation

@adeelehsan
Copy link
Copy Markdown
Contributor

Summary

  • .fernignore: Removes base_client.py so Fern can regenerate it with all new API modules (agents, agent_sessions, agent_events, tools, tool_servers, hallucination_correctors, etc.)
  • client.py: Updates the custom Vectara class to work with the new Fern-generated base_client.py:
    • Defines OMIT locally instead of importing from base_client (new Fern version doesn't export it)
    • Adds convenience methods query(), query_stream(), chat(), chat_stream() that delegate to the Fern-generated queries and chats clients

Why

The current base_client.py was frozen in .fernignore and is missing 15+ new API modules that Fern now generates. This causes AttributeError: 'Vectara' object has no attribute 'agents' etc.

After merge

  1. Trigger Fern SDK generation from the docs repo
  2. Fern will regenerate base_client.py with all modules
  3. Need to add api_key-only auth path back to the generated base_client.py (Fern only generates token and client_id/client_secret paths)

Test plan

  • Merge this PR
  • Run Fern generation
  • Verify Vectara(api_key=...) works
  • Verify sdk_client.agents, sdk_client.tools, etc. are available

🤖 Generated with Claude Code

- 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>
@adeelehsan adeelehsan merged commit b5f15e0 into main Apr 14, 2026
2 of 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