Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion genai/live/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ scipy==1.16.1
websockets==15.0.1
numpy==1.26.4
soundfile==0.12.1
openai==1.99.1
openai==2.0.1
setuptools==80.9.0
2 changes: 1 addition & 1 deletion generative_ai/chat_completions/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
google-auth==2.38.0
openai==1.68.2
openai==2.0.1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

Upgrading to openai v2 is a major version change that introduces breaking API changes. The release notes for v2.0.0 state: 'ResponseFunctionToolCallOutputItem.output and ResponseCustomToolCallOutput.output now return string | Array<ResponseInputText | ResponseInputImage | ResponseInputFile> instead of string only. This may break existing callsites that assume output is always a string.' Code using this dependency must be updated to be compatible with the v2 API to prevent runtime failures. This PR should not be merged until the necessary code migrations are completed.

2 changes: 1 addition & 1 deletion generative_ai/embeddings/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ sentencepiece==0.2.0
google-auth==2.29.0
anthropic[vertex]==0.28.0
numpy<3
openai==1.68.2
openai==2.0.1
immutabledict==4.2.0
2 changes: 1 addition & 1 deletion generative_ai/evaluation/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ anthropic[vertex]==0.28.0
langchain-core==0.2.33
langchain-google-vertexai==1.0.10
numpy<3
openai==1.68.2
openai==2.0.1
immutabledict==4.2.0
2 changes: 1 addition & 1 deletion generative_ai/extensions/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ anthropic[vertex]==0.28.0
langchain-core==0.2.33
langchain-google-vertexai==1.0.10
numpy<3
openai==1.68.2
openai==2.0.1
immutabledict==4.2.0
2 changes: 1 addition & 1 deletion generative_ai/function_calling/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
google-auth==2.38.0
openai==1.68.2
openai==2.0.1
google-cloud-aiplatform==1.86.0
2 changes: 1 addition & 1 deletion generative_ai/image_generation/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ anthropic[vertex]==0.28.0
langchain-core==0.2.33
langchain-google-vertexai==1.0.10
numpy<3
openai==1.68.2
openai==2.0.1
immutabledict==4.2.0
2 changes: 1 addition & 1 deletion generative_ai/model_garden/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ anthropic[vertex]==0.28.0
langchain-core==0.2.33
langchain-google-vertexai==1.0.10
numpy<3
openai==1.68.2
openai==2.0.1
immutabledict==4.2.0
2 changes: 1 addition & 1 deletion generative_ai/model_tuning/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ anthropic[vertex]==0.28.0
langchain-core==0.2.33
langchain-google-vertexai==1.0.10
numpy<3
openai==1.68.2
openai==2.0.1
immutabledict==4.2.0
2 changes: 1 addition & 1 deletion generative_ai/prompts/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ anthropic[vertex]==0.28.0
langchain-core==0.2.33
langchain-google-vertexai==1.0.10
numpy<3
openai==1.68.2
openai==2.0.1
immutabledict==4.2.0
2 changes: 1 addition & 1 deletion generative_ai/reasoning_engine/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ anthropic[vertex]==0.28.0
langchain-core==0.2.33
langchain-google-vertexai==1.0.10
numpy<3
openai==1.68.2
openai==2.0.1
immutabledict==4.2.0