Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
c64er4ever opened this issue Jul 30, 2024 · 1 comment

Comments

@c64er4ever
Copy link

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant