Skip to content

Commit 6ba49d6

Browse files
add new openai models
1 parent fa549fd commit 6ba49d6

File tree

4 files changed

+14
-9
lines changed

4 files changed

+14
-9
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Nemo Agent
22

33
[![PyPI - Version](https://img.shields.io/pypi/v/nemo-agent)](https://pypi.org/project/nemo-agent/)
4+
[![Python 3.12+](https://img.shields.io/badge/python-3.12+-blue.svg)](https://www.python.org/downloads/)
5+
[![PyPI - Downloads](https://img.shields.io/pypi/dm/nemo-agent)](https://pypi.org/project/nemo-agent/)
6+
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)
7+
[![Libraries.io dependency status for GitHub repo](https://img.shields.io/librariesio/github/truemagic-coder/nemo-agent)](https://libraries.io/pypi/nemo-agent)
48

59
[![Nemo Agent](https://cdn.cometheart.com/nemo-agent-2.png)](https://cdn.cometheart.com/nemo-agent.mp4)
610

@@ -135,7 +139,8 @@ You many want to skip tests especially if you are generating a UI application.
135139
* Supports any 128k input token models
136140

137141
#### OpenAI
138-
* Supports `gpt-4.1`, `gpt-4.1-mini`, `gpt-4.1-nano`, `o3-mini`, `o1-mini`, `o1`, `gpt-4o`, and `gpt-4o-mini`
142+
* Supports standard models: `gpt-4.1`, `gpt-4.1-mini`, `gpt-4.1-nano`, `gpt-4o`, and `gpt-4o-mini`
143+
* Supports reasoning models: `o4-mini`, `o3-mini`, `o1-mini`, and `o1`
139144

140145
#### Claude
141146
* Supports `claude-3-7-sonnet-20250219` and `claude-3-5-sonnet-20241022`

nemo_agent/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,11 @@ def __init__(self, model):
8888
self.max_tokens = 16384
8989
self.max_output_tokens = 16384
9090
else:
91-
# Default to o3-mini or o1
91+
# Default to other o-models
9292
self.max_tokens = 100000
9393
self.max_output_tokens = 100000
9494

95-
self.special_models = ["o1", "o1-preview", "o1-mini", "o3-mini"]
95+
self.special_models = ["o1", "o1-mini", "o3-mini", "o4-mini"]
9696

9797
def count_tokens(self, text):
9898
return len(tiktoken.encoding_for_model("gpt-4o").encode(text))

poetry.lock

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

pyproject.toml

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

0 commit comments

Comments
 (0)