cohere-python icon indicating copy to clipboard operation
cohere-python copied to clipboard

fix(custom code): update decorator to ignore missing arguments

Open fern-support opened this issue 1 year ago • 0 comments

Currently, there is a custom decorator that checks to see if deprecated fields are used within function calls Specifically response_format is checked for schema (see here), this doesn't work if the field is optional, and thus not provided

This works locally when passing in an explicit None to response_format or leaving it empty, when testing locally

fern-support avatar Aug 20 '24 15:08 fern-support