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
error: use of deprecated field `v1::chat_completion::ChatCompletionRequest::function_call`: This field is deprecated. Use `tool_choice` instead.
--> src/v1/chat_completion.rs:77:13
|
77 | function_call: None,
| ^^^^^^^^^^^^^^^^^^^
It seems that marking the field as deprecated is not working as intended. Even though "None" is specified, it triggers a complaint, which makes pipeline fail. In the code where the ChatCompletionRequest constructs itself using its new(...) method.
Describe the bug
It seems that marking the field as deprecated is not working as intended. Even though "None" is specified, it triggers a complaint, which makes pipeline fail. In the code where the
ChatCompletionRequest
constructs itself using itsnew(...)
method.This change was introduced in #54
To Reproduce
See pipeline in main branch
Code snippets
No response
OS
All
Rust version
Any
Library version
openai-api-rs v2.1.7
The text was updated successfully, but these errors were encountered: