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

Gemini failing to conform to edit format #3079

Open
Finndersen opened this issue Jan 30, 2025 · 0 comments
Open

Gemini failing to conform to edit format #3079

Finndersen opened this issue Jan 30, 2025 · 0 comments

Comments

@Finndersen
Copy link

Issue

Gemini 1206 is routinely failing to adhere to the edit format. It seems to be stopping output early, maybe some issue with the streaming approach?

Example:

Here are the SEARCH/REPLACE blocks for these changes:

<<filename.py>>

<<<<<<< SEARCH
class FilterOperator(StrEnum):
    """
    Set of possible filter comparison operators
    """

    EQUALS = "equals"
    CONTAINS = "contains"  # Only relevant to array types
    MATCHES_PATTERN = "matches_pattern"  # Only relevant to string types
    EXISTS = "exists"
    IS_IN = "is_in"
=======
class FilterOperator(StrEnum):
    """
    Set of possible filter comparison operators
    """

    EQUALS = "equals"
    LESS_THAN = "less_than"
    LESS_THAN_OR_EQUAL_TO = "less_than_or_

> Tokens: 18k sent, 406 received.  
> The LLM did not conform to the edit format.  
> https://aider.chat/docs/troubleshooting/edit-errors.html  
> Okay, I understand. I will add the new `FilterClause` implementations for the requested operators and provide corresponding tests.

(it gets stuck in a loop doing the same thing)

Version and model info

Aider v0.72.3

Model: gemini/gemini-exp-1206 with diff edit format
Git repo: ../../.git with 391 files
Repo-map: using 4096 tokens, auto refresh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant