continue icon indicating copy to clipboard operation
continue copied to clipboard

Autocomplete fails with openai gpt-4o model "Invalid 'stop': array too long.

Open tandav opened this issue 1 year ago • 0 comments

Relevant environment info

"tabAutocompleteModel": {
    "model": "gpt-4o-mini",
    "title": "gpt-4o-mini",
    "provider": "openai",
    "maxStopWords": 20,
    "apiBase": "https://openai-proxy.example.com/v1",
    "apiKey": "sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxx"
  },

Description

this is reopen of this issue

To reproduce

No response

Log output

HTTP 400 Bad Request from https://openai-proxy.example.com/v1/chat/completions {
"error": {
 "message": "Invalid 'stop': array too long. Expected an array with maximum length 4, but got an array with length 9 instead.", 
"type": "invalid_request_error", 
"param": "stop", 
"code": "array_above_max_length" } }

tandav avatar Oct 04 '24 11:10 tandav