This description was created by db6594f3e1e0e503ce35ddfbf0f95cf41c10de86
feat: enhance agents API and session management, update Docker configurations
Summary:
This pull request enhances the agents API, session management, and task execution, updates Docker configurations, and improves error handling and security across the codebase.
Key points:
API Enhancements:
Added X-Custom-Api-Key header to generate endpoint in endpoints.tsp for custom API key support.
Updated create_or_update_session.py to return ResourceUpdatedResponse instead of ResourceCreatedResponse.
Changed UUID handling in multiple routers (e.g., create_agent.py, create_user.py) to use uuid.UUID instead of pydantic.UUID4.
Database and Query Changes:
Added LITELLM_SALT_KEY to .env.example for additional security.
Modified acompletion in litellm.py to support custom API keys.
Updated search_docs_by_embedding.py to use unique(snippet_data) instead of collect(snippet).
Docker and Environment:
Updated docker-compose.yml in llm-proxy to use litellm-database:main-v1.46.6 image.
Modified scheduler/docker-compose.yml to use environment variables for database configuration.
Miscellaneous:
Fixed typo in api.md ("overriden" to "overridden").
Added AssertionError handling in create_or_update_session.py and create_session.py for better error management.
feat: enhance agents API and session management, update Docker configurations
Summary:
This pull request enhances the agents API, session management, and task execution, updates Docker configurations, and improves error handling and security across the codebase.
Key points:
X-Custom-Api-Key
header togenerate
endpoint inendpoints.tsp
for custom API key support.create_or_update_session.py
to returnResourceUpdatedResponse
instead ofResourceCreatedResponse
.create_agent.py
,create_user.py
) to useuuid.UUID
instead ofpydantic.UUID4
.LITELLM_SALT_KEY
to.env.example
for additional security.acompletion
inlitellm.py
to support custom API keys.search_docs_by_embedding.py
to useunique(snippet_data)
instead ofcollect(snippet)
.docker-compose.yml
inllm-proxy
to uselitellm-database:main-v1.46.6
image.scheduler/docker-compose.yml
to use environment variables for database configuration.api.md
("overriden" to "overridden").AssertionError
handling increate_or_update_session.py
andcreate_session.py
for better error management.Generated with :heart: by ellipsis.dev