Skip to content

Commit dbc853d

Browse files
switch to mini and update readme
1 parent 852be2c commit dbc853d

File tree

2 files changed

+12
-35
lines changed

2 files changed

+12
-35
lines changed

README.md

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
* `streamlit` apps
3636
* `tkinter` apps
3737
* `jupyter notebook`
38-
* Note: Not all runs will be successful with all models
3938

4039
## Install
4140

@@ -55,9 +54,13 @@
5554
## Usage
5655

5756
### Providers
58-
* `openai`: `uvx nemo-agent --provider openai`
57+
* `openai`: `uvx nemo-agent` (default)
5958
* `gemini`: `uvx nemo-agent --provider gemini`
6059

60+
### Supported Models
61+
* `openai` is `gpt-4.1-mini` (default)
62+
* `gemini` is `gemini-2.5-flash-preview-04-17`
63+
6164
### Import Reference Documentation Into Prompt
6265
* Documentation files must be either: .md (Markdown) or .txt (Text) and be located in a folder
6366
* `uvx nemo-agent --docs example_folder`
@@ -97,24 +100,6 @@ You many want to skip tests especially if you are generating a UI application.
97100

98101
* `uvx nemo-agent "create a fizzbuzz script" --tests False`
99102

100-
## Models
101-
102-
### Default Models
103-
* `openai` is `gpt-4.1`
104-
* `gemini` is `gemini-2.5-flash-preview-04-17`
105-
106-
### Select Models
107-
* `uvx nemo-agent "my-prompt" --provider openai --model o4-mini`
108-
109-
### Supported Models
110-
111-
#### OpenAI
112-
* Supports standard models: `gpt-4.1`, `gpt-4.1-mini`, `gpt-4.1-nano`, `gpt-4o`, and `gpt-4o-mini`
113-
* Supports reasoning models: `o4-mini`, `o3-mini`, `o1-mini`, and `o1`
114-
115-
#### Gemini
116-
* Supports `gemini-2.5-flash-preview-04-17`, `gemini-2.5-pro-preview-03-25`
117-
118103
## Contributing
119104
Contributions to Nemo Agent are welcome! Please feel free to submit a Pull Request.
120105

nemo_agent/main.py

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -23,22 +23,14 @@ def __init__(self, model):
2323
raise ValueError("OPENAI_API_KEY environment variable is not set")
2424
self.openai = OpenAI(api_key=self.api_key)
2525
self.token_count = 0
26-
27-
if model == "gpt-4.1" or model == "gpt-4.1-mini" or model == "gpt-4.1-nano":
26+
if model == "gpt-4.1-mini":
2827
self.max_tokens = 32768
2928
self.max_output_tokens = 32768
30-
elif model == "o1-mini":
31-
self.max_tokens = 65536
32-
self.max_output_tokens = 65536
33-
elif model == "gpt-4o" or model == "gpt-4o-mini":
34-
self.max_tokens = 16384
35-
self.max_output_tokens = 16384
36-
else:
37-
# Default to other o-models
29+
elif model == "o4-mini":
3830
self.max_tokens = 100000
3931
self.max_output_tokens = 100000
4032

41-
self.special_models = ["o1", "o1-mini", "o3-mini", "o4-mini"]
33+
self.special_models = ["o4-mini"]
4234

4335
def count_tokens(self, text):
4436
return len(tiktoken.encoding_for_model("gpt-4o").encode(text))
@@ -106,7 +98,7 @@ def generate(self, prompt):
10698

10799
class GeminiAPI:
108100
def __init__(self, model):
109-
if model == "gpt-4.1":
101+
if model == "gpt-4.1-mini":
110102
model="gemini-2.5-flash-preview-04-17"
111103
self.model = model
112104
self.api_key = os.getenv("GEMINI_API_KEY")
@@ -172,7 +164,7 @@ class NemoAgent:
172164
WRITE_RETRY_DELAY = 1 # second
173165

174166
def __init__(
175-
self, task: str, model: str = "gpt-4.1", provider: str = "openai", tests: bool = True
167+
self, task: str, model: str = "gpt-4.1-mini", provider: str = "openai", tests: bool = True
176168
):
177169
self.task = task
178170
self.model = model
@@ -879,7 +871,7 @@ def main
879871
type=click.Path(exists=True),
880872
help="Path to a markdown file containing the task",
881873
)
882-
@click.option("--model", default="gpt-4.1", help="The model to use for Nemo Agent")
874+
@click.option("--model", default="gpt-4.1-mini", help="The model to use for Nemo Agent")
883875
@click.option(
884876
"--provider",
885877
default="openai",
@@ -913,7 +905,7 @@ def main
913905
def cli(
914906
task: str = None,
915907
file: str = None,
916-
model: str = "gpt-4.1",
908+
model: str = "gpt-4.1-mini",
917909
provider: str = "openai",
918910
zip: str = None,
919911
docs: str = None,

0 commit comments

Comments
 (0)