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

@@ -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)