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 sample's test fails Infrequent #12661

Open
msampathkumar opened this issue Oct 1, 2024 · 0 comments
Open

Generative AI - Function Calling sample's test fails Infrequent #12661

msampathkumar opened this issue Oct 1, 2024 · 0 comments
Assignees
Labels
samples Issues that are directly related to samples.

Comments

@msampathkumar
Copy link
Member

Infrequent, I seen the following error for other Generative code samples. Raising a bug request on this.

_________________________ test_function_calling_config _________________________
Traceback (most recent call last):
  File "/workspace/generative_ai/.nox/py-3-11/lib/python3.11/site-packages/_pytest/runner.py", line 341, in from_call
...
...
...
  File "/workspace/generative_ai/function_calling/chat_function_calling_test.py", line 41, in test_function_calling_config
    response = chat_function_calling_config.generate_text()
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/workspace/generative_ai/function_calling/chat_function_calling_config.py", line 80, in generate_text
    print("Function:", response.choices[0].message.tool_calls[0].id)
                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
TypeError: 'NoneType' object is not subscriptable

Originally posted by @msampathkumar in #12644 (comment)

@msampathkumar msampathkumar self-assigned this Oct 1, 2024
@product-auto-label product-auto-label bot added the samples Issues that are directly related to samples. label Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
samples Issues that are directly related to samples.
Projects
None yet
Development

No branches or pull requests

1 participant