> Index: https://quebragalho.dev/en/docs/llms.txt

# LangChain

Change the client's base URL and API key. The rest of the code stays the same.

- Protocol: /v1/chat/completions

## In your code

- **Where to configure:** `ChatOpenAI` with `base_url` at `/v1`.
- **API key:** `api_key` from the `QUEBRAGALHO_API_KEY` variable.

## Caveats

- Drops the `reasoning_content` of reasoning models.

Read it in the browser: https://quebragalho.dev/en/docs/integracoes/langchain
