cohere-ai / cohere-python

Python Library for Accessing the Cohere API
https://docs.cohere.ai
MIT License
302 stars 65 forks source link

Getting BaseCohere.classify() missing 1 required keyword-only argument: 'examples' when trying to use fine-tuned Classify model #554

Open c64er4ever opened 3 months ago

c64er4ever commented 3 months ago

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

c64er4ever commented 3 months ago

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