Skip to content

Commit 1208d2a

Browse files
committed
Update examples to use gpt-4.1-mini
1 parent 7861f73 commit 1208d2a

File tree

25 files changed

+25
-25
lines changed

25 files changed

+25
-25
lines changed

agent-apis/src/functions/llm.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export type OpenAIChatInput = {
1414
export const llm = async ({
1515
userContent,
1616
systemContent = "",
17-
model = "gpt-4o-mini",
17+
model = "gpt-4.1-mini",
1818
}: OpenAIChatInput): Promise<string> => {
1919
try {
2020
const openai = new OpenAI({

agent-rag/src/functions/llmChat.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export type OpenAIChatInput = {
2121

2222
export const llmChat = async ({
2323
systemContent = "",
24-
model = "gpt-4o-mini",
24+
model = "gpt-4.1-mini",
2525
messages,
2626
}: OpenAIChatInput): Promise<string> => {
2727
try {

agent-reactflow/apps/backend/src/functions/llmChat.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export type OpenAIChatInput = {
1919

2020
export const llmChat = async ({
2121
systemContent = "",
22-
model = "gpt-4o",
22+
model = "gpt-4.1-mini",
2323
messages,
2424
stream = true,
2525
tools,

agent-reactflow/apps/backend/src/functions/llmResponse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export const llmResponse = async ({
2727

2828
const chatParams: ChatCompletionCreateParamsNonStreaming = {
2929
messages: messages,
30-
model: "gpt-4o-mini",
30+
model: "gpt-4.1-mini",
3131
response_format: responseFormat,
3232
};
3333

agent-reactflow/apps/frontend/app/api/chat/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export async function POST(req: Request) {
1616
})
1717

1818
const result = streamText({
19-
model: openaiClient('gpt-4o'),
19+
model: openaiClient('gpt-4.1-mini'),
2020
messages,
2121
tools: {
2222
updateFlow: tool({

agent-stream/src/functions/llmChat.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export type OpenAIChatInput = {
1818

1919
export const llmChat = async ({
2020
systemContent = "",
21-
model = "gpt-4o-mini",
21+
model = "gpt-4.1-mini",
2222
messages,
2323
stream = true,
2424
}: OpenAIChatInput): Promise<Message> => {

agent-telephony/twilio-livekit/agent/src/functions/llmLogic.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export const llmLogic = async ({
4747

4848
const completion = await openai.beta.chat.completions.parse({
4949
messages,
50-
model: "gpt-4o",
50+
model: "gpt-4.1-mini",
5151
response_format: zodResponseFormat(LlmLogicResponse, "logic"),
5252
});
5353

agent-telephony/twilio-livekit/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ docker run -d --pull always --name restack -p 5233:5233 -p 6233:6233 -p 7233:723
3131

3232
In all subfolders, duplicate the `env.example` file and rename it to `.env`.
3333

34-
Obtain a Restack API Key to interact with the 'gpt-4o-mini' model at no cost from [Restack Cloud](https://console.restack.io/starter)
34+
Obtain a Restack API Key to interact with the 'gpt-4.1-mini' model at no cost from [Restack Cloud](https://console.restack.io/starter)
3535

3636

3737
## Install dependencies and start services

agent-todo/src/functions/llmChat.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export type OpenAIChatInput = {
2626

2727
export const llmChat = async ({
2828
systemContent = "",
29-
model = "gpt-4o-mini",
29+
model = "gpt-4.1-mini",
3030
messages,
3131
tools,
3232
}: OpenAIChatInput): Promise<ChatCompletionMessage> => {

agent-tool/src/functions/llmChat.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export type OpenAIChatInput = {
2626

2727
export const llmChat = async ({
2828
systemContent = "",
29-
model = "gpt-4o-mini",
29+
model = "gpt-4.1-mini",
3030
messages,
3131
tools,
3232
}: OpenAIChatInput): Promise<ChatCompletionMessage> => {

0 commit comments

Comments
 (0)