Skip to content

Commit dfba53f

Browse files
Fix Dependabot alerts for guardrails (#1964)
* Fix guardrails issue Signed-off-by: ZePan110 <ze.pan@intel.com> * Revert Xgrammer Signed-off-by: ZePan110 <ze.pan@intel.com> * Revert vllm change Signed-off-by: ZePan110 <ze.pan@intel.com> * Test Signed-off-by: ZePan110 <ze.pan@intel.com> * Test Signed-off-by: ZePan110 <ze.pan@intel.com> * Fix Signed-off-by: ZePan110 <ze.pan@intel.com> * Fix 2 Signed-off-by: ZePan110 <ze.pan@intel.com> * Fix 3 Signed-off-by: ZePan110 <ze.pan@intel.com> * Fix langchain issue Signed-off-by: ZePan110 <ze.pan@intel.com> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Signed-off-by: ZePan110 <ze.pan@intel.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 97e1e4e commit dfba53f

File tree

4 files changed

+743
-418
lines changed

4 files changed

+743
-418
lines changed

comps/guardrails/src/hallucination_detection/integrations/hallucination_guard.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
import aiohttp
88
import requests
99
from fastapi.responses import StreamingResponse
10-
from langchain.schema import HumanMessage, SystemMessage
1110
from langchain_community.llms import VLLMOpenAI
11+
from langchain_core.messages import HumanMessage, SystemMessage
1212
from langchain_core.prompts import ChatPromptTemplate, PromptTemplate
1313

1414
from comps import (

0 commit comments

Comments
 (0)