Observation
While using the TypeScript SDK, I noticed that chat() and chatStream() methods are still routing requests to /v1/chat.
However, the SDK exposes a v2 client:
get v2() { ... }
Impact
- Responses may not leverage latest API improvements
- Leads to suboptimal LLM performance
- Confusing for developers expecting v2 behavior
Suggestion
- Either route default chat methods to
/v2/chat
- Or clearly document v1 vs v2 usage
- Or expose
client.v2.chat() more prominently
Additional Context
Happy to contribute a fix if guidance is provided, especially if changes are required in the Fern API definition.
Observation
While using the TypeScript SDK, I noticed that
chat()andchatStream()methods are still routing requests to/v1/chat.However, the SDK exposes a
v2client:get v2() { ... }
Impact
Suggestion
/v2/chatclient.v2.chat()more prominentlyAdditional Context
Happy to contribute a fix if guidance is provided, especially if changes are required in the Fern API definition.