[PR #1086] [MERGED] Update chat-model-tabs.mdx to fix missing os import in Model Class #1282

Closed
opened 2026-02-17 17:22:04 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/docs/pull/1086
Author: @chapainaashish
Created: 10/22/2025
Status: Merged
Merged: 10/22/2025
Merged by: @lnhsingh

Base: mainHead: patch-1


📝 Commits (2)

  • adeb99f Update chat-model-tabs.mdx to fix missing os import in Model Class
  • f71ccb1 Merge branch 'main' into patch-1

📊 Changes

1 file changed (+4 additions, -0 deletions)

View changed files

📝 src/snippets/chat-model-tabs.mdx (+4 -0)

📄 Description

Fixed missing os import in python Model Class

Overview

Update chat-model-tabs.mdx to fix missing os import in Model Class

Type of change

Type: Fix bug

Examples:
Added os import on this type of example which was missing

import os
from langchain_openai import ChatOpenAI

os.environ["OPENAI_API_KEY"] = "sk-..."

model = ChatOpenAI(model="gpt-4.1")

Checklist

  • [ x] I have read the contributing guidelines
  • [ x] I have tested my changes locally using docs dev
  • [ x] All code examples have been tested and work correctly
  • [x ] I have used root relative paths for internal links
  • [x ] I have updated navigation in src/docs.json if needed
  • I have gotten approval from the relevant reviewers

Additional notes


🔄 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/1086 **Author:** [@chapainaashish](https://github.com/chapainaashish) **Created:** 10/22/2025 **Status:** ✅ Merged **Merged:** 10/22/2025 **Merged by:** [@lnhsingh](https://github.com/lnhsingh) **Base:** `main` ← **Head:** `patch-1` --- ### 📝 Commits (2) - [`adeb99f`](https://github.com/langchain-ai/docs/commit/adeb99f6b9fea1019b78e62f648035af33a5b6bc) Update chat-model-tabs.mdx to fix missing os import in Model Class - [`f71ccb1`](https://github.com/langchain-ai/docs/commit/f71ccb1504f1fbac191ecadcad3aa0e5517b6452) Merge branch 'main' into patch-1 ### 📊 Changes **1 file changed** (+4 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/snippets/chat-model-tabs.mdx` (+4 -0) </details> ### 📄 Description Fixed missing os import in python Model Class ## Overview Update chat-model-tabs.mdx to fix missing os import in Model Class ## Type of change **Type:** Fix bug Examples: Added os import on this type of example which was missing ``` import os from langchain_openai import ChatOpenAI os.environ["OPENAI_API_KEY"] = "sk-..." model = ChatOpenAI(model="gpt-4.1") ``` ## Checklist <!-- Put an 'x' in all boxes that apply --> - [ x] I have read the [contributing guidelines](README.md) - [ x] I have tested my changes locally using `docs dev` - [ x] All code examples have been tested and work correctly - [x ] I have used **root relative** paths for internal links - [x ] I have updated navigation in `src/docs.json` if needed - I have gotten approval from the relevant reviewers ## Additional notes --- <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-02-17 17:22:04 -05:00
yindo closed this issue 2026-02-17 17:22:04 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/docs#1282