Skip to content

Commit aae4247

Browse files
[BUZZOK-26790] Remove asyncio from datarobot moderations (#1601)
* [BUZZOK-26790] Remove asyncio from datarobot moderations 11.1.23 removes the asyncio as separate wheel dependency of datarobot moderation library. It also has CVE fixes. * Reconcile dependencies, updated IDs, tags --------- Co-authored-by: svc-harness-git2 <[email protected]>
1 parent e5342fd commit aae4247

File tree

5 files changed

+151
-153
lines changed

5 files changed

+151
-153
lines changed

public_dropin_environments/python311_genai_agents/Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,7 @@ COPY ./agent/requirements-agent.txt ${WORKDIR}/
9999
# hadolint ignore=DL3013, SC1091
100100
RUN source ${VENV_PATH}/bin/activate && \
101101
uv pip install --no-cache-dir -r ${WORKDIR}/requirements.txt && rm ${WORKDIR}/requirements.txt && \
102-
uv pip install --no-cache-dir -r ${WORKDIR}/requirements-agent.txt && rm ${WORKDIR}/requirements-agent.txt && \
103-
# asyncio should never be installed in python 3.4+ as it's part of stdlib
104-
uv pip uninstall asyncio
102+
uv pip install --no-cache-dir -r ${WORKDIR}/requirements-agent.txt && rm ${WORKDIR}/requirements-agent.txt
105103

106104
# Copy agent runtime into work directory
107105
COPY ./run_agent.py ${WORKDIR}/

public_dropin_environments/python311_genai_agents/Dockerfile.local

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,7 @@ COPY ./agent/requirements-agent.txt ${WORKDIR}/
139139
# hadolint ignore=DL3013, SC1091
140140
RUN source ${VENV_PATH}/bin/activate && \
141141
uv pip install --no-cache-dir -r ${WORKDIR}/requirements.txt && rm ${WORKDIR}/requirements.txt && \
142-
uv pip install --no-cache-dir -r ${WORKDIR}/requirements-agent.txt && rm ${WORKDIR}/requirements-agent.txt && \
143-
# asyncio should never be installed in python 3.4+ as it's part of stdlib
144-
uv pip uninstall asyncio
142+
uv pip install --no-cache-dir -r ${WORKDIR}/requirements-agent.txt && rm ${WORKDIR}/requirements-agent.txt
145143

146144
# Copy agent runtime into work directory
147145
COPY ./run_agent.py ${WORKDIR}/

public_dropin_environments/python311_genai_agents/env_info.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "This template environment can be used to create GenAI-powered agents using CrewAI, LangGraph, or Llama-Index. Similar to other drop-in environments, you can either include a .pth artifact or any other code needed to deserialize your model, and optionally a custom.py file. You can also use this environment in codespaces.",
55
"programmingLanguage": "python",
66
"label": "",
7-
"environmentVersionId": "68720e115516e31199c42ba1",
7+
"environmentVersionId": "68804ba27c9da91262303cd7",
88
"environmentVersionDescription": "",
99
"isPublic": true,
1010
"isDownloadable": true,
@@ -15,8 +15,8 @@
1515
"contextUrl": "https://github.com/datarobot/datarobot-user-models/tree/master/public_dropin_environments/python311_genai_agents",
1616
"imageRepository": "env-python-genai-agents",
1717
"tags": [
18-
"v11.1-68720e115516e31199c42ba1",
19-
"68720e115516e31199c42ba1",
18+
"v11.1-68804ba27c9da91262303cd7",
19+
"68804ba27c9da91262303cd7",
2020
"v11.1-latest"
2121
]
2222
}

public_dropin_environments/python311_genai_agents/requirements.in

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ click~=8.1.8
2424
crewai>=0.140.0
2525
crewai-tools>=0.48.0
2626
datarobot-drum>=1.16.19
27-
datarobot-moderations>=11.1.19
27+
datarobot-moderations~=11.1.23
2828
datarobot-mlops>=11.1.0
2929
datarobot>=3.7.0
3030
dotenv~=0.9.9
@@ -34,14 +34,14 @@ langgraph~=0.4.10
3434
langgraph-prebuilt~=0.2.3
3535
legacy-cgi~=2.6.3
3636
litellm>=1.72.1
37-
llama-index-core>=0.12.41
37+
llama-index-core>=0.12.49
3838
llama-index-llms-langchain~=0.6.1
3939
llama-index-llms-litellm~=0.4.1
40-
llama-index-llms-openai~=0.3.38
41-
llama-index~=0.12.33
40+
llama-index-llms-openai~=0.4.7
41+
llama-index~=0.12.50
4242
multidict~=6.5.0
4343
onnxruntime~=1.22.0
44-
openai~=1.76.2
44+
openai~=1.97.0
4545
opentelemetry-api~=1.33.0
4646
opentelemetry-instrumentation-aiohttp-client~=0.54b0
4747
opentelemetry-instrumentation-crewai~=0.40.5

0 commit comments

Comments
 (0)