Skip to content

Commit e355ea0

Browse files
committed
new gpt models added
1 parent bf9f2db commit e355ea0

File tree

4 files changed

+900
-6
lines changed

4 files changed

+900
-6
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ This package will provide you to translate your JSON/YAML files or JSON objects
5050
| gpt-3.5-turbo || `require API KEY (OPENAI_API_KEY as env)` |
5151
| gpt-4 || `require API KEY (OPENAI_API_KEY as env)` |
5252
| gpt-4o-mini || `require API KEY (OPENAI_API_KEY as env)` |
53+
| gpt-5 || `require API KEY (OPENAI_API_KEY as env)` |
54+
| gpt-5-nano || `require API KEY (OPENAI_API_KEY as env)` |
55+
| gpt-5-mini || `require API KEY (OPENAI_API_KEY as env)` |
5356
| gemma-7b || `require API KEY (GROQ_API_KEY as env)` |
5457
| gemma2-9b || `require API KEY (GROQ_API_KEY as env)` |
5558
| mixtral-8x7b || `require API KEY (GROQ_API_KEY as env)` |
@@ -70,6 +73,9 @@ This package will provide you to translate your JSON/YAML files or JSON objects
7073
| gpt-3.5-turbo || `require API KEY (OPENAI_API_KEY as env)` |
7174
| gpt-4 || `require API KEY (OPENAI_API_KEY as env)` |
7275
| gpt-4o-mini || `require API KEY (OPENAI_API_KEY as env)` |
76+
| gpt-5 || `require API KEY (OPENAI_API_KEY as env)` |
77+
| gpt-5-nano || `require API KEY (OPENAI_API_KEY as env)` |
78+
| gpt-5-mini || `require API KEY (OPENAI_API_KEY as env)` |
7379
| gemma-7b || `require API KEY (GROQ_API_KEY as env)` |
7480
| gemma2-9b || `require API KEY (GROQ_API_KEY as env)` |
7581
| mixtral-8x7b || `require API KEY (GROQ_API_KEY as env)` |

src/modules/functions.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,30 @@ export async function translateWithGPT4oMini(
212212
return translateWithGPT('gpt-4o-mini', str, from, to);
213213
}
214214

215+
export async function translateWithGPT5(
216+
str: string,
217+
from: string,
218+
to: string
219+
) {
220+
return translateWithGPT('gpt-5', str, from, to);
221+
}
222+
223+
export async function translateWithGPT5Nano(
224+
str: string,
225+
from: string,
226+
to: string
227+
) {
228+
return translateWithGPT('gpt-5-nano-2025-08-07', str, from, to);
229+
}
230+
231+
export async function translateWithGPT5Mini(
232+
str: string,
233+
from: string,
234+
to: string
235+
) {
236+
return translateWithGPT('gpt-5-mini-2025-08-07', str, from, to);
237+
}
238+
215239
export async function translateWithGPT(
216240
model: string,
217241
str: string,

0 commit comments

Comments
 (0)