Skip to content
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

[generative_ai]: Function calling with OpenAI samples are not working anymore. #12996

Open
Valeriy-Burlaka opened this issue Dec 13, 2024 · 0 comments
Assignees
Labels
priority: p2 Moderately-important priority. Fix may not be included in next release. samples Issues that are directly related to samples. triage me I really want to be triaged. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@Valeriy-Burlaka
Copy link
Member

Valeriy-Burlaka commented Dec 13, 2024

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 #12811
There is a related discussion #12990 about missing regressions after the recent CI migration.

@Valeriy-Burlaka Valeriy-Burlaka added triage me I really want to be triaged. priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. labels Dec 13, 2024
@product-auto-label product-auto-label bot added the samples Issues that are directly related to samples. label Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: p2 Moderately-important priority. Fix may not be included in next release. samples Issues that are directly related to samples. triage me I really want to be triaged. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

No branches or pull requests

3 participants