You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When starting a new chat with a registered function, under many situations I get this warning:
/Users/cvaske/.pyenv/versions/3.12.1/lib/python3.12/site-packages/pydantic/main.py:1406: RuntimeWarning: fields may not start with an underscore, ignoring "__required__"
warnings.warn(f'fields may not start with an underscore, ignoring "{f_name}"', RuntimeWarning)
What I Did
importchatlabdefadd_two_numbers(a: float, b: float) ->float:
"""Add two numbers together. Raises an exception when the numbers are in the wrong order."""ifb<a:
returna+braiseException("I can't do math")
chat=chatlab.Chat(model=chatlab.models.GPT_4_0125_PREVIEW, chat_functions=[add_two_numbers])
awaitchat("Please add 1 + 2 for me")
The text was updated successfully, but these errors were encountered:
Description
When starting a new chat with a registered function, under many situations I get this warning:
What I Did
The text was updated successfully, but these errors were encountered: