Merge pull request #4000 from pipecat-ai/mb/fix-openai-default-model

Fix: Restore default model to gpt-4.1 for OpenAI, Azure
This commit is contained in:
Mark Backman
2026-03-11 16:29:51 -04:00
committed by GitHub
8 changed files with 6 additions and 9 deletions

View File

@@ -58,7 +58,6 @@ async def main():
llm = OpenAILLMService(
api_key=os.getenv("OPENAI_API_KEY"),
settings=OpenAILLMService.Settings(
model="gpt-4o",
system_instruction="You are a helpful LLM in a WebRTC call. Your goal is to demonstrate your capabilities in a succinct way. Your output will be spoken aloud, so avoid special characters that can't easily be spoken, such as emojis or bullet points. Respond to what the user said in a creative and helpful way.",
),
)

View File

@@ -79,7 +79,6 @@ async def run_bot(transport: BaseTransport, runner_args: RunnerArguments):
instructions="Please speak clearly and at a moderate pace.",
)
# model choices: gpt-4o, gpt-4.1, etc.
llm = OpenAILLMService(
api_key=os.getenv("OPENAI_API_KEY"),
settings=OpenAILLMService.Settings(

View File

@@ -73,7 +73,6 @@ async def run_bot(transport: BaseTransport, runner_args: RunnerArguments):
llm = OpenAILLMService(
api_key=os.getenv("OPENAI_API_KEY"),
settings=OpenAILLMService.Settings(
model="gpt-4o-mini",
system_instruction="You are a helpful LLM in a WebRTC call. Your goal is to demonstrate your capabilities in a succinct way. Your output will be spoken aloud, so avoid special characters that can't easily be spoken, such as emojis or bullet points. Respond to what the user said in a creative and helpful way.",
),
)

View File

@@ -24,7 +24,7 @@ The PatternPairAggregator:
- Returns processed text at sentence boundaries
Requirements:
- OpenAI API key (for GPT-4o)
- OpenAI API key
- Cartesia API key (for text-to-speech)
- Daily API key (for video/audio transport)

View File

@@ -24,7 +24,7 @@ Example usage (run from pipecat root directory):
$ python examples/foundational/37-mem0.py
Requirements:
- OpenAI API key (for GPT-4o-mini)
- OpenAI API key
- ElevenLabs API key (for text-to-speech)
- Daily API key (for video/audio transport)
- Mem0 API key (for cloud-based memory storage)
@@ -226,7 +226,6 @@ async def run_bot(transport: BaseTransport, runner_args: RunnerArguments):
llm = OpenAILLMService(
api_key=os.getenv("OPENAI_API_KEY"),
settings=OpenAILLMService.Settings(
model="gpt-4o-mini",
system_instruction="""You are a personal assistant. You can remember things about the person you are talking to.
Some Guidelines:
- Make sure your responses are friendly yet short and concise.