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

tabAutocompleteModel raise http 400 with litellm #1572

Closed
3 tasks done
goodosoft opened this issue Jun 26, 2024 · 3 comments
Closed
3 tasks done

tabAutocompleteModel raise http 400 with litellm #1572

goodosoft opened this issue Jun 26, 2024 · 3 comments
Labels
area:autocomplete Relates to the auto complete feature ide:vscode Relates specifically to VS Code extension kind:bug Indicates an unexpected problem or unintended behavior

Comments

@goodosoft
Copy link

Before submitting your bug report

Relevant environment info

- OS: macOS 14.5
- Continue: v0.8.40
- IDE: Visual Studio Code 1.90.2

{"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}}

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

{"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}}
@goodosoft goodosoft added the bug label Jun 26, 2024
@sestinj
Copy link
Contributor

sestinj commented Jun 28, 2024

@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
Copy link
Author

@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.

@goodosoft
Copy link
Author

use Cloudflare Workers AI as tabAutocompleteModel, it works.
But sometimes show <|end▁of▁sentence|> .
#1630

@dosubot dosubot bot added area:autocomplete Relates to the auto complete feature kind:bug Indicates an unexpected problem or unintended behavior ide:vscode Relates specifically to VS Code extension labels Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:autocomplete Relates to the auto complete feature ide:vscode Relates specifically to VS Code extension kind:bug Indicates an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants