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
Because of the lack of the above arguments, I met the following error:
File "/usr/local/lib/python3.11/site-packages/marvin/ai/text.py", line 118, in generate_llm_response
request = ChatRequest(messages=messages, **model_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pydantic/main.py", line 212, in __init__
validated_self = self.__pydantic_validator__.validate_python(data, self_instance=self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pydantic_core._pydantic_core.ValidationError: 2 validation errors for ChatRequest
logprobs
Extra inputs are not permitted [type=extra_forbidden, input_value=True, input_type=bool]
For further information visit https://errors.pydantic.dev/2.9/v/extra_forbidden
max_completion_tokens
Extra inputs are not permitted [type=extra_forbidden, input_value=1, input_type=int]
For further information visit https://errors.pydantic.dev/2.9/v/extra_forbidden
The text was updated successfully, but these errors were encountered:
Hi friends,
regarding -
marvin/src/marvin/types.py
Lines 163 to 179 in 24402ee
IMO, ChatRequest class should also accept:
See OAI documentation for more details:
https://platform.openai.com/docs/api-reference/chat/create
Because of the lack of the above arguments, I met the following error:
The text was updated successfully, but these errors were encountered: