deepseek-ai / DeepSeek-V2

DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Model
MIT License
3.47k stars 143 forks source link

API ERROR #9

Closed 851039536 closed 4 months ago

851039536 commented 4 months ago

"detail": "Invalid top_logprobs and logprobs value"

CoruNethron commented 4 months ago

Same here. Even with example curl request from the API docs page.

Edited: I've noticed, that removing both top_logprobs and logprobs items completely from request solves the issue, unless you need to control those params as well.

mutse commented 4 months ago

Same here. Error: [Error: 401 Authentication Fails (no such user).

DillionApple commented 4 months ago

The error "detail": "Invalid top_logprobs and logprobs value" is because when you set top_logprobs, you MUST set logprobs to True. The default value of these two parameters is wrong in the api-doc. We have fixed them. @851039536 @CoruNethron

DillionApple commented 4 months ago

Same here. Error: [Error: 401 Authentication Fails (no such user).

You should input your api key first in the Auth -> Bearer Token section in the REQUEST block.