remove TODOs

This commit is contained in:
Mason Daugherty
2025-09-20 23:57:33 -04:00
parent b71e95c17a
commit 6d88014960
2 changed files with 0 additions and 10 deletions

View File

@@ -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

View File

@@ -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"