Skip to content

Commit af312fc

Browse files
update
1 parent 84e4c08 commit af312fc

File tree

4 files changed

+22
-22
lines changed

4 files changed

+22
-22
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,14 @@ https://github.com/user-attachments/assets/51cf6ad1-196c-44ab-99ba-0035365f1bbd
6262

6363
#### Requirements
6464
* Python 3.9 or higher
65-
* Ollama running `qwen2.5-coder:32b`
66-
* Linux with minimum specs of Ubuntu 24.04 with RTX 4090
65+
* Ollama running `qwen2.5-coder:14b`
66+
* Linux with minimum spec of Ubuntu 24.04 with RTX 4070 or;
67+
* Mac with minimum spec of Mac Mini M2 Pro with 16MB
6768

6869
#### Requirements Installation
6970
* Ollama install instructions:
7071
* `curl -fsSL https://ollama.com/install.sh | sh`
71-
* `ollama pull qwen2.5-coder:32b`
72+
* `ollama pull qwen2.5-coder:14b`
7273
* `pip install nemo-agent`
7374
* You are ready to use `nemo-agent`
7475

@@ -110,7 +111,7 @@ https://github.com/user-attachments/assets/51cf6ad1-196c-44ab-99ba-0035365f1bbd
110111
* `python main.py`
111112

112113
## Default Models
113-
* `ollama` is `qwen2.5-coder:32b` (default model)
114+
* `ollama` is `qwen2.5-coder:14b` (default model)
114115
* `openai` is `gpt-4o`
115116
* `claude` is `claude-3-5-sonnet-20241022`
116117
* `gemini` is `gemini-1.5-pro`

nemo_agent/main.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def generate(self, prompt):
6969

7070
class OpenAIAPI:
7171
def __init__(self, model):
72-
if model == "qwen2.5-coder:32b":
72+
if model == "qwen2.5-coder:14b":
7373
model = "gpt-4o"
7474
self.model = model
7575
self.api_key = os.getenv("OPENAI_API_KEY")
@@ -155,7 +155,7 @@ def generate(self, prompt):
155155

156156
class GeminiAPI:
157157
def __init__(self, model):
158-
if model == "qwen2.5-coder:32b":
158+
if model == "qwen2.5-coder:14b":
159159
model="gemini-1.5-pro"
160160
self.model = model
161161
self.api_key = os.getenv("GEMINI_API_KEY")
@@ -223,7 +223,7 @@ def generate(self, prompt):
223223

224224
class ClaudeAPI:
225225
def __init__(self, model):
226-
if model == "qwen2.5-coder:32b":
226+
if model == "qwen2.5-coder:14b":
227227
model = "claude-3-5-sonnet-20241022"
228228
self.model = model
229229
self.api_key = os.getenv("ANTHROPIC_API_KEY")
@@ -288,7 +288,7 @@ class NemoAgent:
288288
WRITE_RETRY_DELAY = 1 # second
289289

290290
def __init__(
291-
self, task: str, model: str = "qwen2.5-coder:32b", provider: str = "ollama"
291+
self, task: str, model: str = "qwen2.5-coder:14b", provider: str = "ollama"
292292
):
293293
self.task = task
294294
self.model = model
@@ -576,8 +576,7 @@ def implement_solution(self, max_attempts=3):
576576
3. IMPORTANT: Do not add any code comments to the files.
577577
4. IMPORTANT: Always follow PEP8 style guide, follow best practices for Python, use snake_case naming, and provide meaningful docstrings.
578578
5. CRITICAL: Your response should ONLY contain the code blocks and the pip dependencies required for both the test and code files. Do not include any additional information.
579-
6. CRITICAL: Create a main method to run the app in main.py and if a web app run the app on port 8080.
580-
579+
6. CRITICAL: Create a main method to run the app in main.py.
581580
7. CRITICAL: Enclose your entire response between ^^^start^^^ and ^^^end^^^ markers.
582581
8. IMPORTANT: Use the reference documentation provided to guide your implementation including the required dependencies.
583582
9. IMPORTANT: Use the code content as a reference to build a working solution based on the task provided by the user in Python.
@@ -998,7 +997,7 @@ def main
998997
type=click.Path(exists=True),
999998
help="Path to a markdown file containing the task",
1000999
)
1001-
@click.option("--model", default="qwen2.5-coder:32b", help="The model to use for the LLM")
1000+
@click.option("--model", default="qwen2.5-coder:14b", help="The model to use for the LLM")
10021001
@click.option(
10031002
"--provider",
10041003
default="ollama",
@@ -1026,7 +1025,7 @@ def main
10261025
def cli(
10271026
task: str = None,
10281027
file: str = None,
1029-
model: str = "qwen2.5-coder:32b",
1028+
model: str = "qwen2.5-coder:14b",
10301029
provider: str = "ollama",
10311030
zip: str = None,
10321031
docs: str = None,

poetry.lock

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "nemo-agent"
3-
version = "3.0.4"
3+
version = "3.1.0"
44
description = "Your Python AI Coder"
55
authors = ["Bevan Hunt <bevan@bevanhunt.com>"]
66
license = "MIT"
@@ -20,8 +20,8 @@ packages = [{include = "nemo_agent"}]
2020
python = "<4.0,>=3.9"
2121
click = "^8.1.8"
2222
requests = "^2.32.3"
23-
openai = "^1.59.6"
24-
anthropic = "^0.42.0"
23+
openai = "^1.59.9"
24+
anthropic = "^0.43.1"
2525
tiktoken = "^0.8.0"
2626

2727

0 commit comments

Comments
 (0)