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

500 when additional field added to chat/completions-detection #297

Closed
evaline-ju opened this issue Feb 6, 2025 · 0 comments · Fixed by #296
Closed

500 when additional field added to chat/completions-detection #297

evaline-ju opened this issue Feb 6, 2025 · 0 comments · Fixed by #296
Assignees
Labels
bug Something isn't working

Comments

@evaline-ju
Copy link
Collaborator

Describe the bug

500 errors are appearing when additional fields are provided to the completions-detection requests

Sample Code

curl -X 'POST' \
  'http://localhost:8033/api/v2/chat/completions-detection' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "messages": [
    {
      "content": "this is a nice sentence",
      "role": "user",
      "name": "string",
      "additional": "test" # extra field
    }
  ],
  "model": "chat-completions-model",
  "n": 1,
  "temperature": 1,
  "top_p": 1,
  "user": "user-1234",
  "detectors": {}
}'

Expected behavior

422 validation error

Observed behavior

{"code":500,"details":"unexpected error occurred while processing request"}

@evaline-ju evaline-ju added the bug Something isn't working label Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants