feat: Ungate file upload for simple MIME types even without Mistral API key (#2898)
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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}")
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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],
|
||||
)
|
||||
|
||||
@@ -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}")
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user