-
Notifications
You must be signed in to change notification settings - Fork 331
fix: [Security Fix] remove litellm #1239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,7 +3,6 @@ | |
| from utils.env_utils import get_env_int, get_env_float | ||
|
|
||
| import httpx | ||
| from agentd.patch import patch_openai_with_mcp | ||
| from dotenv import load_dotenv | ||
| from openai import AsyncOpenAI | ||
| from opensearchpy import AsyncOpenSearch | ||
|
|
@@ -537,16 +536,14 @@ def run_probe_in_thread(): | |
| use_http2 = future.result(timeout=15) | ||
|
|
||
| if use_http2: | ||
| self._patched_async_client = patch_openai_with_mcp(AsyncOpenAI()) | ||
| self._patched_async_client = AsyncOpenAI() | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. does this break tests?
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. awaiting the integration tests results |
||
| logger.info("OpenAI client initialized with HTTP/2") | ||
| else: | ||
| http_client = httpx.AsyncClient( | ||
| http2=False, | ||
| timeout=httpx.Timeout(60.0, connect=10.0) | ||
| ) | ||
| self._patched_async_client = patch_openai_with_mcp( | ||
| AsyncOpenAI(http_client=http_client) | ||
| ) | ||
| self._patched_async_client = AsyncOpenAI(http_client=http_client) | ||
| logger.info("OpenAI client initialized with HTTP/1.1 (fallback)") | ||
|
Comment on lines
538
to
547
|
||
| logger.info("Successfully initialized OpenAI client") | ||
| except Exception as e: | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
uv pip uninstall litellmis missing a non-interactive confirmation flag. Iflitellmis installed, this can prompt for confirmation and hang/fail the Docker build. Use the equivalent of-y(and optionally make it tolerant if already absent) so the build is deterministic.