Skip to content

Commit

Permalink
Bulk Message Creation Endpoint (#82)
Browse files Browse the repository at this point in the history
* fix: increase db pool limit and optimize crud requests

* fix: Sentry tracing and fly concurrency

* feat: Add alembic and indexes

* feat: Batch insert method

* fix: Pydantic Validation

* fix: Added Pydantic based API validation and Associated Test Cases

* chore: Update Changelog

* fix(docs): Update Docs with new API Method and OpenAPI Spec

* chore(ci): Add Environment Variable for Anthropic
  • Loading branch information
VVoruganti authored Dec 16, 2024
1 parent 6995f87 commit d6194df
Show file tree
Hide file tree
Showing 20 changed files with 4,494 additions and 4,083 deletions.
1 change: 1 addition & 0 deletions .github/workflows/unittest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ jobs:
SENTRY_ENABLED: false
OPENTELEMETRY_ENABLED: false
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}



4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- Alembic for handling database migrations
- Additional indexes for reading Messages and Metamessages

### Changed

- API validation using Pydantic

### Fixed

- Dialectic Streaming Endpoint properly sends text in `StreamingResponse`
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: post /v1/apps/{app_id}/users/{user_id}/sessions/{session_id}/messages/batch
---
3 changes: 2 additions & 1 deletion docs/mint.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@
"pages": [
"api-reference/endpoint/messages/get-messages",
"api-reference/endpoint/messages/create-message-for-session",
"api-reference/endpoint/messages/create-batch-messages-for-session",
"api-reference/endpoint/messages/get-message",
"api-reference/endpoint/messages/update-message"
]
Expand Down Expand Up @@ -160,7 +161,7 @@
"github": "https://github.com/plastic-labs",
"linkedin": "https://www.linkedin.com/company/plasticlabs"
},
"openapi": ["/openapi.yml"],
"openapi": ["/openapi.json"],
"analytics": {
"posthog": {
"apiKey": "phc_1yrzzcgywqXGcerkkI4g7C0YfyPMcAKNOOvGcjTCiUk"
Expand Down
Loading

0 comments on commit d6194df

Please sign in to comment.