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
SDK version: 5.3.0
Hi,
I have created fine-tuned classify model from the dashboard.
Then, I tried to use it using the Python SDK. Here's a code I wrote:
co = cohere.Client(my api key)
response = co.classify(model=my model ID, inputs=some text)
When running this code, I get a TypeError exception:
BaseCohere.classify() missing 1 required keyword-only argument: 'examples'
Per the documentation, there is no need to send examples, since I am using an already trained classify model.
Please advise what the solution should be. Thanks!
Regards,
Guy
The text was updated successfully, but these errors were encountered:
Update: I managed to overcome this error by adding:
examples=[]
But per the documentation and comments inside the SDK code, this should not be required.
Regards,
Guy
SDK version: 5.3.0
Hi,
I have created fine-tuned classify model from the dashboard.
Then, I tried to use it using the Python SDK. Here's a code I wrote:
co = cohere.Client(my api key)
response = co.classify(model=my model ID, inputs=some text)
When running this code, I get a TypeError exception:
BaseCohere.classify() missing 1 required keyword-only argument: 'examples'
Per the documentation, there is no need to send examples, since I am using an already trained classify model.
Please advise what the solution should be. Thanks!
Regards,
Guy
The text was updated successfully, but these errors were encountered: