Skip to content

docs: add Snowflake Cortex REST API integration (ChatOpenAI + ChatAnthropic)#3986

Open
sfc-gh-nashukla (sfc-gh-nashukla) wants to merge 1 commit into
langchain-ai:mainfrom
sfc-gh-nashukla:snowflake-cortex-rest-api-docs
Open

docs: add Snowflake Cortex REST API integration (ChatOpenAI + ChatAnthropic)#3986
sfc-gh-nashukla (sfc-gh-nashukla) wants to merge 1 commit into
langchain-ai:mainfrom
sfc-gh-nashukla:snowflake-cortex-rest-api-docs

Conversation

@sfc-gh-nashukla
Copy link
Copy Markdown

Title:

docs: add Snowflake Cortex REST API integration (ChatOpenAI + ChatAnthropic)

Description:

## Summary

- Add new `chat/cortex_rest_api.mdx` page documenting Snowflake Cortex REST API usage with LangChain via `ChatOpenAI` and `ChatAnthropic`
- Update `providers/snowflake.mdx` with full Snowflake + LangChain capabilities (9 integrations)
- Update `chat/index.mdx` to include Cortex REST API in the "Chat Completions API" section

## Details

Snowflake Cortex REST API supports two industry-standard API specifications:

| Compatibility | Endpoint | LangChain Class |
|---|---|---|
| OpenAI Chat Completions | `/api/v2/cortex/v1/chat/completions` | `ChatOpenAI` |
| Anthropic Messages | `/api/v2/cortex/v1/messages` | `ChatAnthropic` |

This is a zero-dependency approach — users only need `langchain-openai` or `langchain-anthropic` (which they likely already have) plus a Snowflake PAT.

The new chat integration page includes: setup, streaming, tool calling, structured output, and authentication options for both endpoints.

The updated provider page now highlights all current Snowflake + LangChain integrations including Cortex REST API, Cortex Search, Cortex Analyst, Cortex Agents, Cortex AI Tools, MCP Integration, Embeddings, and Document Loader.

## References

- [Cortex REST API documentation](https://docs.snowflake.com/en/user-guide/snowflake-cortex/cortex-rest-api)
- [langchain-snowflake package](https://pypi.org/project/langchain-snowflake/)

…hropic)

Add documentation for using Snowflake Cortex REST API with LangChain.

Cortex REST API supports two industry-standard API specifications:
- OpenAI Chat Completions (/api/v2/cortex/v1/chat/completions) via ChatOpenAI
- Anthropic Messages (/api/v2/cortex/v1/messages) via ChatAnthropic

Changes:
- Add chat/cortex_rest_api.mdx with setup, streaming, tool calling,
  structured output examples for both endpoints
- Update providers/snowflake.mdx with full Snowflake+LangChain capabilities
  (9 integrations including Cortex REST API, Search, Analyst, Agents, etc.)
- Update chat/index.mdx to add Cortex REST API in Chat Completions API
  section and add card in All chat models listing
@github-actions
Copy link
Copy Markdown
Contributor

Thanks for opening a docs PR, sfc-gh-nashukla (@sfc-gh-nashukla)! When it's ready for review, please add the relevant reviewers:

  • @mdrxy (Python integrations)

@github-actions github-actions Bot added langchain For docs changes to LangChain oss python For content related to the Python version of LangChain projects external User is not a member of langchain-ai labels May 12, 2026
@sfc-gh-nashukla
Copy link
Copy Markdown
Author

Ready for review. cc Mason Daugherty (@mdrxy) (Python integrations)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

external User is not a member of langchain-ai langchain For docs changes to LangChain oss python For content related to the Python version of LangChain projects

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant