[generative_ai]: Function calling with OpenAI samples are not working anymore.
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
In which file did you encounter the issue?
generative_ai/function_calling/test_function_calling.py
Did you change the file? If so, how?
No.
Describe the issue
Both function calling with Open AI samples (1, 2) are no longer working (CI build log):
File "/workspace/generative_ai/function_calling/test_function_calling.py", line 59, in test_function_calling_basic
response = chat_function_calling_basic.generate_text()
File "/workspace/generative_ai/function_calling/chat_function_calling_basic.py", line 39, in generate_text
client = openai.OpenAI(
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/openai/_client.py", line 122, in __init__
super().__init__(
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/openai/_base_client.py", line 825, in __init__
self._client = http_client or SyncHttpxClientWrapper(
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/openai/_base_client.py", line 723, in __init__
super().__init__(**kwargs)
TypeError: __init__() got an unexpected keyword argument 'proxies'
- generated xml file: /workspace/generative_ai/function_calling/sponge_log.xml -
=========================== short test summary info ============================
FAILED test_function_calling.py::test_function_calling_basic - TypeError: __i...
FAILED test_function_calling.py::test_function_calling_config - TypeError: __...
========================= 2 failed, 5 passed in 14.85s =========================
I noticed this issue when worked on https://github.com/GoogleCloudPlatform/python-docs-samples/pull/12811
There is a related discussion https://github.com/GoogleCloudPlatform/python-docs-samples/issues/12990 about missing regressions after the recent CI migration.
- Ngôn ngữ chính
- Jupyter Notebook
- Star
- 8.1k
- Fork
- 6.7k
- Merge trung bình
- 4 ngày 4 giờ
- Pull request đã merge (30 ngày)
- 8
Chuẩn bị môi trường
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của GoogleCloudPlatform/python-docs-samples
-
samples
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
GoogleCloudPlatform/python-docs-samples#14609 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
samples
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
GoogleCloudPlatform/python-docs-samples#14610 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
samples
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
GoogleCloudPlatform/python-docs-samples#14611 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
chore(generative_ai) Update model references for generative_ai samplesCó thể làm lại được @XrossFox đã nhận 151 ngày trước và không có pull request nào đang mở. Đang mởsamples
GoogleCloudPlatform/python-docs-samples#14117 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Fix Pipeline dependency issues for geospatial-classification/serving_appCó thể làm lại được @XrossFox đã nhận 163 ngày trước và không có pull request nào đang mở. Đang mởsamples
GoogleCloudPlatform/python-docs-samples#14091 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày