Skip to content

Commit 39b300e

Browse files
authored
Merge pull request #89 from lloydchang/lloydchang-patch-6
feat: add gpt-4o, gpt-4o-mini, o1-preview, o1-mini
2 parents fd088b3 + 25ac269 commit 39b300e

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ dependencies = [
2828
'Mako == 1.3.2',
2929
'requests == 2.32.0',
3030
'rich == 13.7.1',
31-
'tiktoken == 0.6.0',
31+
'tiktoken == 0.8.0',
3232
'instructor == 1.3.5',
3333
'PyYAML == 6.0.1',
3434
'python-dotenv == 1.0.1',

src/hackingBuddyGPT/utils/openai/openai_llm.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,3 +95,31 @@ class GPT4(OpenAIConnection):
9595
class GPT4Turbo(OpenAIConnection):
9696
model: str = "gpt-4-turbo-preview"
9797
context_size: int = 128000
98+
99+
100+
@configurable("openai/gpt-4o", "OpenAI GPT-4o")
101+
@dataclass
102+
class GPT4oMini(OpenAIConnection):
103+
model: str = "gpt-4o"
104+
context_size: int = 128000
105+
106+
107+
@configurable("openai/gpt-4o-mini", "OpenAI GPT-4o-mini")
108+
@dataclass
109+
class GPT4oMini(OpenAIConnection):
110+
model: str = "gpt-4o-mini"
111+
context_size: int = 128000
112+
113+
114+
@configurable("openai/o1-preview", "OpenAI o1-preview")
115+
@dataclass
116+
class O1Preview(OpenAIConnection):
117+
model: str = "o1-preview"
118+
context_size: int = 128000
119+
120+
121+
@configurable("openai/o1-mini", "OpenAI o1-mini")
122+
@dataclass
123+
class O1Mini(OpenAIConnection):
124+
model: str = "o1-mini"
125+
context_size: int = 128000

0 commit comments

Comments
 (0)