Skip to main content
ChatOpenAI and ChatAnthropic take a custom base URL. See the LangChain docs for ChatOpenAI and ChatAnthropic.
  • stream_usage=True is needed for token usage in streams: ChatOpenAI turns it off for custom base URLs.
  • ChatOpenAI reads only standard OpenAI fields, so it does not expose NagaAI’s reasoning_content.
  • ChatAnthropic.get_num_tokens_from_messages calls count_tokens, which returns 404 on NagaAI.
  • With use_responses_api=True, send the full history each turn. NagaAI ignores previous_response_id.