Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion agent_apis/src/functions/llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ async def llm(function_input: FunctionInputParams) -> str:
messages.append({"role": "user", "content": function_input.user_content})

response = client.chat.completions.create(
model=function_input.model or "gpt-4o-mini", messages=messages
model=function_input.model or "gpt-4.1-mini", messages=messages
)
log.info("llm function completed", response=response)
return response.choices[0].message.content
Expand Down
2 changes: 1 addition & 1 deletion agent_apis/src/workflows/multistep.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ async def run(self, workflow_input: WorkflowInputParams) -> dict:
function_input=FunctionInputParams(
system_content=f"You are a personal assitant and have access to weather data {weather_data}. Always greet person with relevant info from weather data",
user_content=user_content,
model="gpt-4o-mini",
model="gpt-4.1-mini",
),
start_to_close_timeout=timedelta(seconds=120),
)
Expand Down
2 changes: 1 addition & 1 deletion agent_chat/src/functions/llm_chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ async def llm_chat(agent_input: LlmChatInput) -> dict[str, str]:
)

assistant_raw_response = client.chat.completions.create(
model=agent_input.model or "gpt-4o-mini",
model=agent_input.model or "gpt-4.1-mini",
messages=agent_input.messages,
)
except Exception as e:
Expand Down
2 changes: 1 addition & 1 deletion agent_rag/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ python -c "from src.services import watch_services; watch_services()"

Duplicate the `env.example` file and rename it to `.env`.

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

## Run agents

Expand Down
2 changes: 1 addition & 1 deletion agent_rag/src/functions/llm_chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ async def llm_chat(function_input: LlmChatInput) -> ChatCompletion:
)

response = client.chat.completions.create(
model=function_input.model or "gpt-4o-mini",
model=function_input.model or "gpt-4.1-mini",
messages=function_input.messages,
)
except Exception as e:
Expand Down
2 changes: 1 addition & 1 deletion agent_stream/src/functions/llm_chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ async def llm_chat(function_input: LlmChatInput) -> str:
messages_dicts = [message.model_dump() for message in function_input.messages]
# Get the streamed response from OpenAI API
response: Stream[ChatCompletionChunk] = client.chat.completions.create(
model=function_input.model or "gpt-4o-mini",
model=function_input.model or "gpt-4.1-mini",
messages=messages_dicts,
stream=True,
)
Expand Down
4 changes: 2 additions & 2 deletions agent_telephony/twilio_livekit/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ docker run -d --pull always --name restack -p 5233:5233 -p 6233:6233 -p 7233:723

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

Obtain a Restack API Key to interact with the 'gpt-4o-mini' model at no cost from [Restack Cloud](https://console.restack.io/starter)
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)


## Start Restack Agent with Twilio
Expand Down Expand Up @@ -102,7 +102,7 @@ python src/worker.py dev

Duplicate the `env.example` file and rename it to `.env`.

Obtain a Restack API Key to interact with the 'gpt-4o-mini' model at no cost from [Restack Cloud](https://console.restack.io/starter)
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)

## Create a new Agent

Expand Down
4 changes: 2 additions & 2 deletions agent_telephony/vapi/agent_vapi/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ docker run -d --pull always --name restack -p 5233:5233 -p 6233:6233 -p 7233:723

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

Obtain a Restack API Key to interact with the 'gpt-4o-mini' model at no cost from [Restack Cloud](https://console.restack.io/starter)
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)


## Start Restack Agent with Twilio
Expand Down Expand Up @@ -99,7 +99,7 @@ python src/pipeline.py dev

Duplicate the `env.example` file and rename it to `.env`.

Obtain a Restack API Key to interact with the 'gpt-4o-mini' model at no cost from [Restack Cloud](https://console.restack.io/starter)
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)

## Create a new Agent

Expand Down
2 changes: 1 addition & 1 deletion agent_telephony/vapi/agent_vapi/src/functions/llm_chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ async def llm_chat(function_input: LlmChatInput) -> str:
messages_dicts = [message.model_dump() for message in function_input.messages]
# Get the streamed response from OpenAI API
response: Stream[ChatCompletionChunk] = client.chat.completions.create(
model=function_input.model or "gpt-4o-mini",
model=function_input.model or "gpt-4.1-mini",
messages=messages_dicts,
stream=True,
)
Expand Down
2 changes: 1 addition & 1 deletion agent_todo/src/functions/llm_chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ async def llm_chat(function_input: LlmChatInput) -> ChatCompletion:
)

response = client.chat.completions.create(
model=function_input.model or "gpt-4o-mini",
model=function_input.model or "gpt-4.1-mini",
messages=function_input.messages,
tools=function_input.tools,
)
Expand Down
2 changes: 1 addition & 1 deletion agent_tool/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ python -c "from src.services import watch_services; watch_services()"

Duplicate the `env.example` file and rename it to `.env`.

Obtain a Restack API Key to interact with the 'gpt-4o-mini' model at no cost from [Restack Cloud](https://console.restack.io/starter)
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)

## Run agents

Expand Down
2 changes: 1 addition & 1 deletion agent_tool/src/functions/llm_chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ async def llm_chat(function_input: LlmChatInput) -> ChatCompletion:
)

result = client.chat.completions.create(
model=function_input.model or "gpt-4o-mini",
model=function_input.model or "gpt-4.1-mini",
messages=function_input.messages,
tools=function_input.tools,
)
Expand Down
2 changes: 1 addition & 1 deletion agent_video/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ python -c "from src.services import watch_services; watch_services()"

Duplicate the `env.example` file and rename it to `.env`.

Obtain a Restack API Key to interact with the 'gpt-4o-mini' model at no cost from [Restack Cloud](https://console.restack.io/starter)
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)

## Create Room and run Agent in parallel

Expand Down
2 changes: 1 addition & 1 deletion agent_video/src/functions/llm_chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ async def llm_chat(function_input: LlmChatInput) -> str:
messages_dicts = [message.model_dump() for message in function_input.messages]
# Get the streamed response from OpenAI API
response: Stream[ChatCompletionChunk] = client.chat.completions.create(
model=function_input.model or "gpt-4o-mini",
model=function_input.model or "gpt-4.1-mini",
messages=messages_dicts,
stream=True,
)
Expand Down
2 changes: 1 addition & 1 deletion agent_voice/livekit/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ In all subfolders, duplicate the `env.example` file and rename it to `.env`.
- Sign up at [ElevenLabs](https://elevenlabs.io/docs/overview)
- Add `ELEVENLABS_API_KEY` to .env file

Obtain a Restack API Key to interact with the 'gpt-4o-mini' model at no cost from [Restack Cloud](https://console.restack.io/starter)
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)

## Start Restack

Expand Down
2 changes: 1 addition & 1 deletion agent_voice/livekit/agent/src/functions/llm_chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ async def llm_chat(function_input: LlmChatInput) -> str:
messages_dicts = [message.model_dump() for message in function_input.messages]
# Get the streamed response from OpenAI API
response: Stream[ChatCompletionChunk] = client.chat.completions.create(
model=function_input.model or "gpt-4o-mini",
model=function_input.model or "gpt-4.1-mini",
messages=messages_dicts,
stream=True,
)
Expand Down
2 changes: 1 addition & 1 deletion agent_voice/livekit/livekit_pipeline/src/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ async def entrypoint(ctx: JobContext) -> None:
vad=ctx.proc.userdata["vad"],
stt=deepgram.STT(),
llm=openai.LLM(
# model="gpt-4o-mini",
# model="gpt-4.1-mini",
# api_key=os.environ.get("OPENAI_API_KEY"),
api_key=f"{agent_id}-livekit",
base_url=agent_url,
Expand Down
2 changes: 1 addition & 1 deletion agent_voice/pipecat/pipecat_pipeline/src/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ async def main() -> None:
live_options=LiveOptions(vad_events=True, utterance_end_ms="1000"),
)

llm = OpenAILLMService(api_key=os.getenv("OPENAI_API_KEY"), model="gpt-4o-mini")
llm = OpenAILLMService(api_key=os.getenv("OPENAI_API_KEY"), model="gpt-4.1-mini")

tts = ElevenLabsTTSService(
api_key=os.getenv("ELEVENLABS_API_KEY", ""),
Expand Down
2 changes: 1 addition & 1 deletion audio_transcript/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[project]
name = "audio_transcript"
version = "0.0.1"
description = "Transcribe audio with OpenAI Whisper and translate the text with OpenAI GPT-4o-mini"
description = "Transcribe audio with OpenAI Whisper and translate the text with OpenAI gpt-4.1-mini"
authors = [{ name = "Restack Team", email = "service@restack.io" }]
requires-python = ">=3.10,<3.14"
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion audio_transcript/src/functions/translate_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ async def translate_text(input: TranslateTextInput):

try:
response = client.chat.completions.create(
model="gpt-4o-mini",
model="gpt-4.1-mini",
messages=[
{
"role": "system",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ async def translate(input: FunctionInputParams):
print(messages)
messages.append({"role": "system", "content": "To each output in the end add a line 'Helped By Restack AI'"})
response = client.chat.completions.create(
model="gpt-4o-mini",
model="gpt-4.1-mini",
messages=messages,
temperature=0.0
)
Expand Down
2 changes: 1 addition & 1 deletion community/e2b/src/workflows/code_execution.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ async def run(self, input: CodeExecutionWorkflowInput) -> CodeExecutionWorkflowO
messages = []
while True:
llm_response = await workflow.step(openai_tool_call, input=OpenaiToolCallInput(
model="gpt-4o-mini",
model="gpt-4.1-mini",
user_content=input.user_content if not messages else None,
system_content=input.system_content if not messages else None,
messages=messages,
Expand Down
2 changes: 1 addition & 1 deletion community/livekit_opentelemetry/src/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ async def entrypoint(ctx: JobContext) -> None:
vad=ctx.proc.userdata["vad"],
stt=deepgram.STT(),
llm=openai.LLM(
# model="gpt-4o-mini",
# model="gpt-4.1-mini",
# api_key=os.environ.get("OPENAI_API_KEY"),
api_key=f"{agent_id}-livekit",
base_url=agent_url,
Expand Down
2 changes: 1 addition & 1 deletion community/openai_greet/src/functions/function.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ async def openai_greet(input: FunctionInputParams) -> str:
messages.append({"role": "user", "content": input.user_content})

response = client.chat.completions.create(
model=input.model or "gpt-4o-mini",
model=input.model or "gpt-4.1-mini",
messages=messages,
response_format={
"json_schema": {
Expand Down
2 changes: 1 addition & 1 deletion community/re_act/src/functions/decide.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ async def decide(input: DecideInput):
]

response = client.chat.completions.create(
model="gpt-4o-mini",
model="gpt-4.1-mini",
messages=[
{
"role": "system",
Expand Down
2 changes: 1 addition & 1 deletion community/re_act/src/functions/generate_email_content.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ async def generate_email_content(input: GenerateEmailInput):
client = OpenAI(api_key=os.environ.get("OPENAI_API_KEY"))

response = client.chat.completions.create(
model="gpt-4o-mini",
model="gpt-4.1-mini",
messages=[
{
"role": "system",
Expand Down
2 changes: 1 addition & 1 deletion pdf_ocr/src/functions/openai_chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ async def openai_chat(input: OpenAiChatInput) -> str:
messages.append({"role": "user", "content": input.user_content})

response = client.chat.completions.create(
model=input.model or "gpt-4o-mini",
model=input.model or "gpt-4.1-mini",
messages=messages
)
log.info("openai_chat function completed", response=response)
Expand Down
2 changes: 1 addition & 1 deletion pdf_ocr/src/workflows/pdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ async def run(self, input: PdfWorkflowInput):
function=openai_chat,
function_input=OpenAiChatInput(
user_content=f"Make a summary of that PDF. Here is the OCR result: {ocr_result}",
model="gpt-4o-mini"
model="gpt-4.1-mini"
),
start_to_close_timeout=timedelta(seconds=120)
)
Expand Down