Closed sprappcom closed 3 months ago
Thanks for trying aider and filing this issue. This doc may be helpful:
https://aider.chat/docs/troubleshooting/edit-errors.html
When reporting problems, it is very helpful if you can provide:
Including the “announcement” lines that aider prints at startup is an easy way to share some of this helpful info.
Aider v0.37.1-dev
Models: gpt-4o with diff edit format, weak model gpt-3.5-turbo
Git repo: .git with 243 files
Repo-map: using 1024 tokens
Same problem. For me this looks like an incomplete LLM response which wouldn't be aider's fault.
Aider v0.45.1
Model: anthropic.claude-3-5-sonnet-20240620-v1:0 with diff edit format
Git repo: .git with 83 files
Repo-map: using 1024 tokens
Output:
crews/tooltest/tooltest/main.py
```python
<<<<<<< SEARCH
def main():
print("Hello, world!")
=======
from crewai import Agent, Task, Crew
from langchain.llms import OpenAI
def create_simple_agent():
return Agent(
role='Simple Agent',
goal='Perform simple tasks and respond to queries',
backstory='I am a helpful AI assistant created to assist with various tasks.',
verbose=True,
llm=OpenAI(temperature=0.7)
)
def main():
simple_agent = create_simple_agent()
task = Task(
description="Say hello to the world",
agent=simple_agent
)
crew = Crew(
agents=[simple_agent],
tasks
^^^ Incomplete SEARCH/REPLACE block.
This doc may be helpful:
I'm going to close this issue for now, but feel free to add a comment here and I will re-open or file a new issue any time.
Issue
use rust_lru_cache::{Cache, Config, MemoryType, GB}; use rand::{Rng, thread_rng}; use std::time::{Instant, Duration}; use std::sync::{Arc, atomic::{AtomicUsize, Ordering}}; use std::thread;
const NUM_KEYS: usize = 1_000_000; const NUM_THREADS: usize = 8; const TEST_DURATION: Duration = Duration::from_secs(10);
Version and model info
latest version as of today. ubuntu 24.04 sonnet 3.5