# LangChain

> Use o ChatOpenAI com a URL base da NotHoly.


```python test
import os
from langchain_openai import ChatOpenAI

llm = ChatOpenAI(model="notholy-specter", base_url="https://api.notholy.com/v1", api_key=os.environ["NOTHOLY_API_KEY"])
print(llm.invoke("Name the CWE for OS command injection.").content)
```

O tool binding com `llm.bind_tools([...])` funciona porque os modelos suportam function calling.

## Próximos passos

- [Function calling](/pt-br/guides/function-calling)
