Skip to content

Chat API routes to v1 endpoint despite v2 client availability #291

@JayMehta21

Description

@JayMehta21

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions