diff --git a/agents-api/agents_api/queries/agents/patch_agent.py b/agents-api/agents_api/queries/agents/patch_agent.py index 324ee2eee..46a06b9a1 100644 --- a/agents-api/agents_api/queries/agents/patch_agent.py +++ b/agents-api/agents_api/queries/agents/patch_agent.py @@ -35,6 +35,14 @@ default_settings = CASE WHEN $7::jsonb IS NOT NULL THEN $7 ELSE default_settings + END, + instructions = CASE + WHEN $8::text[] IS NOT NULL THEN $8 + ELSE instructions + END, + canonical_name = CASE + WHEN $9::citext IS NOT NULL THEN $9 + ELSE canonical_name END WHERE agent_id = $2 AND developer_id = $1 RETURNING *; @@ -72,6 +80,8 @@ async def patch_agent( data.metadata, data.model, data.default_settings.model_dump() if data.default_settings else None, + [data.instructions] if isinstance(data.instructions, str) else data.instructions, + data.canonical_name, ] return ( diff --git a/llm-proxy/litellm-config.yaml b/llm-proxy/litellm-config.yaml index 2a9653ddd..8590d05f3 100644 --- a/llm-proxy/litellm-config.yaml +++ b/llm-proxy/litellm-config.yaml @@ -119,6 +119,12 @@ model_list: api_key: os.environ/OPENROUTER_API_KEY tags: ["paid"] +- model_name: "l3.1-euryale-70b" + litellm_params: + model: "openrouter/sao10k/l3.1-euryale-70b" + api_key: os.environ/OPENROUTER_API_KEY + tags: ["paid"] + - model_name: "l3.3-euryale-70b" litellm_params: model: "openrouter/sao10k/l3.3-euryale-70b" diff --git a/memory-store/migrations/000023_update_strings_length_constraints.down.sql b/memory-store/migrations/000023_update_strings_length_constraints.down.sql new file mode 100644 index 000000000..8531be83e --- /dev/null +++ b/memory-store/migrations/000023_update_strings_length_constraints.down.sql @@ -0,0 +1,41 @@ +BEGIN; + +-- Drop the updated constraints +ALTER TABLE agents +DROP CONSTRAINT IF EXISTS ct_agents_about_length; + +ALTER TABLE tools +DROP CONSTRAINT IF EXISTS ct_tools_description_length; + +ALTER TABLE files +DROP CONSTRAINT IF EXISTS ct_files_description_length; + +ALTER TABLE tasks +DROP CONSTRAINT IF EXISTS ct_tasks_description_length; + +-- Restore original constraints +ALTER TABLE tools +ADD CONSTRAINT ct_tools_description_length CHECK ( + description IS NULL + OR length(description) <= 1000 +); + +ALTER TABLE files +ADD CONSTRAINT ct_files_description_length CHECK ( + description IS NULL + OR length(description) <= 1000 +); + +ALTER TABLE tasks +ADD CONSTRAINT ct_tasks_description_length CHECK ( + description IS NULL + OR length(description) <= 1000 +); + +ALTER TABLE agents +ADD CONSTRAINT ct_agents_about_length CHECK ( + about IS NULL + OR length(about) <= 5000 +); + +COMMIT; \ No newline at end of file diff --git a/memory-store/migrations/000023_update_strings_length_constraints.up.sql b/memory-store/migrations/000023_update_strings_length_constraints.up.sql new file mode 100644 index 000000000..92fe4bc1a --- /dev/null +++ b/memory-store/migrations/000023_update_strings_length_constraints.up.sql @@ -0,0 +1,41 @@ +BEGIN; + +-- Drop existing constraints +ALTER TABLE agents +DROP CONSTRAINT IF EXISTS ct_agents_about_length; + +ALTER TABLE tools +DROP CONSTRAINT IF EXISTS ct_tools_description_length; + +ALTER TABLE files +DROP CONSTRAINT IF EXISTS ct_files_description_length; + +ALTER TABLE tasks +DROP CONSTRAINT IF EXISTS ct_tasks_description_length; + +-- Add new constraints with updated length +ALTER TABLE agents +ADD CONSTRAINT ct_agents_about_length CHECK ( + about IS NULL + OR length(about) <= 16000 +); + +ALTER TABLE tools +ADD CONSTRAINT ct_tools_description_length CHECK ( + description IS NULL + OR length(description) <= 16000 +); + +ALTER TABLE files +ADD CONSTRAINT ct_files_description_length CHECK ( + description IS NULL + OR length(description) <= 16000 +); + +ALTER TABLE tasks +ADD CONSTRAINT ct_tasks_description_length CHECK ( + description IS NULL + OR length(description) <= 16000 +); + +COMMIT; \ No newline at end of file