#invalid_request_filter code 2201 with default javascript client

6 messages · Page 1 of 1 (latest)

spice cobalt
#

Steps to reproduce:
I copied the chat completion code directly from the docs - https://docs.mistral.ai/platform/client
I ran MISTRAL_API_KEY="blah" node file.js
I get the error in the title of this post.

Attached is my complete output(with api key redacted), here is the short form error:

  type: 'invalid_request_filter',
  param: null,
  code: 2201,
  object: 'error',
  message: 'Request body is not a valid query'
}```

Happens with both of these node versions(modified with nvm):
v21.4.0
v18.16.0
#

I suspect it's something I'm doing wrong, but text-compare.com says I'm using the example exactly as-is and I figure it's better to repot it than not.

sacred turret
#

can you share the exact command?

spice cobalt
#

MISTRAL_API_KEY="blah" node index.js
index.js being the attached image(same as example code)

sacred turret
#

Thanks, having a look!

sacred turret