Skip to content

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

@c64er4ever

Description

@c64er4ever

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions