Skip to content

armgit / burr

Public Imported from GitHub
0

Build applications that make decisions (chatbots, agents, simulations, etc...). Monitor, trace, persist, and execute on your own infrastructure.

Update OpenAI model in email assistant example

preethamk88e8145ed96c60
diff --git a/examples/email-assistant/application.py b/examples/email-assistant/application.py
index ec74bf91..79b23b5c 100644
--- a/examples/email-assistant/application.py
+++ b/examples/email-assistant/application.py
@@ -54,7 +54,7 @@ def determine_clarifications(state: State) -> State:
client = _get_openai_client()
# TODO -- use instructor to get a pydantic model
result = client.chat.completions.create(
- model="gpt-4",
+ model="gpt-4o-mini",
messages=[
{
"role": "system",
@@ -130,7 +130,7 @@ def formulate_draft(state: State) -> Tuple[dict, State]:
prompt = " ".join(instructions)
result = client.chat.completions.create(
- model="gpt-4",
+ model="gpt-4o-mini",
messages=[
{
"role": "system",