[PR #3986] docs: add Snowflake Cortex REST API integration (ChatOpenAI + ChatAnthropic) #3994

Open
opened 2026-06-05 18:53:50 -04:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/docs/pull/3986
Author: @sfc-gh-nashukla
Created: 5/12/2026
Status: 🔄 Open

Base: mainHead: snowflake-cortex-rest-api-docs


📝 Commits (1)

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

📊 Changes

3 files changed (+368 additions, -10 deletions)

View changed files

src/oss/python/integrations/chat/cortex_rest_api.mdx (+192 -0)
📝 src/oss/python/integrations/chat/index.mdx (+11 -1)
📝 src/oss/python/integrations/providers/snowflake.mdx (+165 -9)

📄 Description

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/)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langchain-ai/docs/pull/3986 **Author:** [@sfc-gh-nashukla](https://github.com/sfc-gh-nashukla) **Created:** 5/12/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `snowflake-cortex-rest-api-docs` --- ### 📝 Commits (1) - [`df63e7c`](https://github.com/langchain-ai/docs/commit/df63e7c384da5c5b913e6d96b81bf77c382dcdd5) docs: add Snowflake Cortex REST API integration (ChatOpenAI + ChatAnthropic) ### 📊 Changes **3 files changed** (+368 additions, -10 deletions) <details> <summary>View changed files</summary> ➕ `src/oss/python/integrations/chat/cortex_rest_api.mdx` (+192 -0) 📝 `src/oss/python/integrations/chat/index.mdx` (+11 -1) 📝 `src/oss/python/integrations/providers/snowflake.mdx` (+165 -9) </details> ### 📄 Description **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/) ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-06-05 18:53:50 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/docs#3994