mirror of
https://github.com/hwchase17/langchain.git
synced 2026-02-21 06:33:41 +00:00
remove TODOs
This commit is contained in:
@@ -5,7 +5,6 @@ from __future__ import annotations
|
||||
from typing import Any, Literal, Union
|
||||
from unittest.mock import MagicMock
|
||||
|
||||
import pydantic
|
||||
from langchain_core.messages import AIMessageChunk, ToolMessage
|
||||
from langchain_tests.unit_tests import ChatModelUnitTests
|
||||
from openai import BaseModel
|
||||
@@ -14,10 +13,6 @@ from pydantic import SecretStr
|
||||
|
||||
from langchain_deepseek.chat_models import ChatDeepSeek
|
||||
|
||||
# patch validation to ignore leading underscores due to OpenAI client issue
|
||||
# TODO: remove when fixed in OpenAI client
|
||||
pydantic._internal._model_construction.is_valid_field_name = lambda name: True
|
||||
|
||||
|
||||
class MockOpenAIResponse(BaseModel):
|
||||
choices: list
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import json
|
||||
|
||||
import pydantic
|
||||
import pytest # type: ignore[import-not-found]
|
||||
from langchain_core.messages import (
|
||||
AIMessage,
|
||||
@@ -16,10 +15,6 @@ from langchain_openai.chat_models.base import (
|
||||
|
||||
from langchain_xai import ChatXAI
|
||||
|
||||
# patch validation to ignore leading underscores due to OpenAI client issue
|
||||
# TODO: remove when fixed in OpenAI client
|
||||
pydantic._internal._model_construction.is_valid_field_name = lambda name: True
|
||||
|
||||
MODEL_NAME = "grok-4"
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user