feat: Ungate file upload for simple MIME types even without Mistral API key (#2898)

This commit is contained in:
Matthew Zhou
2025-06-18 15:11:30 -07:00
committed by GitHub
parent a1a203c943
commit 698d99a66e
21 changed files with 95 additions and 76 deletions

View File

@@ -30,7 +30,7 @@ agent_state = client.agents.create(
model="openai/gpt-4o-mini",
context_window_limit=8000,
# embedding model & endpoint configuration (cannot be changed)
embedding="openai/text-embedding-ada-002",
embedding="openai/text-embedding-3-small",
# system instructions for the agent (defaults to `memgpt_chat`)
system=gpt_system.get_system_text("memgpt_chat"),
# whether to include base letta tools (default: True)

View File

@@ -19,7 +19,7 @@ agent_state = client.agents.create(
],
# set automatic defaults for LLM/embedding config
model="openai/gpt-4o-mini",
embedding="openai/text-embedding-ada-002",
embedding="openai/text-embedding-3-small",
)
print(f"Created agent with name {agent_state.name} and unique ID {agent_state.id}")

View File

@@ -21,7 +21,7 @@ agent = client.agents.create(
),
],
model="openai/gpt-4o-mini",
embedding="openai/text-embedding-ada-002",
embedding="openai/text-embedding-3-small",
)
print(f"Created agent with name {agent.name}")
@@ -120,7 +120,7 @@ for chunk in stream:
agent_copy = client.agents.create(
model="openai/gpt-4o-mini",
embedding="openai/text-embedding-ada-002",
embedding="openai/text-embedding-3-small",
)
block = client.agents.blocks.retrieve(agent.id, block_label="human")
agent_copy = client.agents.blocks.attach(agent_copy.id, block.id)

View File

@@ -46,7 +46,7 @@ agent_state = client.agents.create(
],
# set automatic defaults for LLM/embedding config
model="openai/gpt-4o-mini",
embedding="openai/text-embedding-ada-002",
embedding="openai/text-embedding-3-small",
# create the agent with an additional tool
tool_ids=[tool.id],
tool_rules=[
@@ -89,7 +89,7 @@ agent_state = client.agents.create(
),
],
model="openai/gpt-4o-mini",
embedding="openai/text-embedding-ada-002",
embedding="openai/text-embedding-3-small",
include_base_tools=False,
tool_ids=[tool.id, send_message_tool.id],
)

View File

@@ -26,7 +26,7 @@ agent = client.agents.create(
}
],
model="openai/gpt-4o-mini",
embedding="openai/text-embedding-ada-002",
embedding="openai/text-embedding-3-small",
tool_ids=[mcp_tool.id]
)
print(f"Created agent id {agent.id}")

View File

@@ -30,7 +30,7 @@ source_name = "employee_handbook"
source = client.sources.create(
name=source_name,
description="Provides reference information for the employee handbook",
embedding="openai/text-embedding-ada-002" # must match agent
embedding="openai/text-embedding-3-small" # must match agent
)
# attach the source to the agent
client.agents.sources.attach(