Closed netpoe closed 10 months ago
I did a hack:
const response = await cohere.client.classify({
model: "60a0705a-5231-4d4a-b62f-8be55def74a5-ft",
inputs: [input],
});
And was able to get a 200 by extending the model:
interface classifyWithModelRequest extends classifyBaseRequest {
}
export type classifyRequest =
| classifyWithInputsRequest
| classifyWithPresetRequest
| classifyWithModelRequest;
@netpoe The updated ClassifyRequest now has an optional preset!
Using
"cohere-ai": "^5.0.2"
in NodeJS, I'm getting an unexpected response from theclassify
endpoint:I've tried several combinations (see attachments) to send the data by specifying a model, but I get typescript errors:
This is the data being sent:
By testing in https://docs.cohere.ai/reference/classify, I do get the expected results with almost the same args and the API Call even excludes
preset
.