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

[regression in 0.74.2+] "metadata: dict" gets transformed into "meta dict" #3410

Open
hyperknot opened this issue Mar 1, 2025 · 3 comments
Labels
bug Something isn't working priority

Comments

@hyperknot
Copy link

hyperknot commented Mar 1, 2025

Issue

I basically cannot use Aider because of the following issue:

I have a Python source file like this:

def make_recipe_gemini(metadata: dict, transcription: str) -> None:

Aider basically cannot keep this metadata: dict part. It gets transformed into meta dict, which of course breaks all code, which it recognised with the internal flake8 pass.

It's not a bug in Claude, it's Aider who is already giving the buggy inputs!

For example, this is still before LLM response, when I ask:

in process.py where is this meta dict coming from??? make it metadata: dict
-------
ASSISTANT I see there's a typo in the function signature in process.py where it says `meta dict` instead of `meta dict`. I'll need to edit that file to fix it.
ASSISTANT 
ASSISTANT Please add process.py to the chat so I can make the correction.
-------

I've managed to create a minimum reproducible .llm.history, uploaded here as txt.

llm.history.txt

Version and model info

Aider 0.75.1
model: openrouter/anthropic/claude-3.7-sonnet (same with 3.5)

@hyperknot
Copy link
Author

hyperknot commented Mar 1, 2025

I did some testing:

  • 0.73.0 works correctly
  • 0.74.0 works correctly
  • 0.74.1 works correctly
  • 0.74.2 broken
  • 0.74.3 broken
  • 0.75.1 broken

@hyperknot hyperknot changed the title "metadata: dict" gets transformed into "meta dict" [regression in 0.75] "metadata: dict" gets transformed into "meta dict" Mar 1, 2025
@hyperknot hyperknot changed the title [regression in 0.75] "metadata: dict" gets transformed into "meta dict" [regression] "metadata: dict" gets transformed into "meta dict" Mar 1, 2025
@hyperknot hyperknot changed the title [regression] "metadata: dict" gets transformed into "meta dict" [regression in 0.74.2+] "metadata: dict" gets transformed into "meta dict" Mar 1, 2025
@paul-gauthier paul-gauthier added bug Something isn't working priority labels Mar 1, 2025
@hyperknot
Copy link
Author

In this I cannot find anything, maybe it's in a dependency?
v0.74.1...v0.74.2

@FeepingCreature
Copy link
Contributor

(Fyi, the reason for this is some really, really, really really bad litellm networking code that tries to handle SSE but doesn't actually understand how SSE works.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working priority
Projects
None yet
Development

No branches or pull requests

3 participants