Closed goodosoft closed 3 months ago
@goodosoft This is an edge case we haven't considered largely because GPT-4 isn't intended for autocomplete. Do you have access to any other models, like Codestral? It will be cheaper, faster, more accurate, give correct formatting, and won't cause this problem
@goodosoft This is an edge case we haven't considered largely because GPT-4 isn't intended for autocomplete. Do you have access to any other models, like Codestral? It will be cheaper, faster, more accurate, give correct formatting, and won't cause this problem
Thanks, we will try Codestral with ollama.
use Cloudflare Workers AI as tabAutocompleteModel, it works. But sometimes show <|end▁of▁sentence|> .
Before submitting your bug report
Relevant environment info
Description
{"error":{"message":"litellm.BadRequestError: BadRequestError: OpenAIException - Error code: 400 - {'error': {'message': \"Invalid 'stop': array too long. Expected an array with maximum length 4, but got an array with length 14 instead.\", 'type': 'invalid_request_error', 'param': 'stop', 'code': 'array_above_max_length'}}","type":null,"param":null,"code":400}}
To reproduce
No response
Log output