-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Backend upgrade: Stability & Firestore, Pinecone, Silero VAD & Docs #1981
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
4b30d81
Fix Firestore client initialization with explicit project ID
skywinder 763c7bc
Pinecone vector database initialization with configuration handling
skywinder cbe4a95
Add project ID handling for Google Cloud Storage client initialization
skywinder 715e091
Enhance GitHub API token handling and documentation
skywinder dd659bc
Improve Silero VAD model loading with error handling and fallback mec…
skywinder b8a5a3b
doc: Add Opus library troubleshooting
skywinder 5cdbd46
feat: Add Typesense mock client for development and configuration han…
skywinder dc0ee8c
docs: Enhance Typesense configuration guide in README
skywinder 34650a8
feat: Improve Silero VAD model download and loading mechanism
skywinder 3ab94bd
fix: Update Silero VAD model download URL and simplify file retrieval
skywinder ffd5e69
feat: Add PyOgg error handling and fallback mechanism for Opus codec
skywinder c36bdb7
Merge branch 'main' into backend-improments
skywinder 0710acd
Fixed App Store Icon in ReadMe
neooriginal e368cc6
Removing the VAD on external trigger for audio-bytes; pushing the pus…
beastoin 8af4897
x2 connections for the external integration
beastoin 88215d1
refactor: Restructure app list page layout and category rendering
smian1 1082646
feat: Improve Google Cloud credentials handling in backend
skywinder 2d7942c
add docker compose
skywinder da4dbbb
chore: Update backend Docker configuration and documentation
skywinder 3eb8df8
Update Docker configuration to use port 8000
skywinder 77d7ad3
doc: Add GOOGLE_CLOUD_PROJECT variable to .env.template and update RE…
skywinder 80fe051
Merge branch 'main' into backend-improments
skywinder 1d2ac3f
gitignore
skywinder d22fa0f
Merge branch 'main' into backend-improments
skywinder 7e9c238
clenap optional variables and wrap try catch to make it work without
skywinder 6d2cc7c
update .env.template remove unused var and add mised bucket variable…
skywinder File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,37 +1,73 @@ | ||
| HUGGINGFACE_TOKEN= | ||
| BUCKET_SPEECH_PROFILES= | ||
| BUCKET_BACKUPS= | ||
| BUCKET_PLUGINS_LOGOS= | ||
| ################################################# | ||
| # REQUIRED ENVIRONMENT VARIABLES # | ||
| ################################################# | ||
| # These variables are essential for core functionality | ||
|
|
||
| # Firebase/Google Cloud Authentication | ||
| GOOGLE_APPLICATION_CREDENTIALS=google-credentials.json | ||
| GOOGLE_CLOUD_PROJECT= | ||
|
|
||
| PINECONE_API_KEY= | ||
| PINECONE_INDEX_NAME= | ||
|
|
||
| # Database Connection | ||
| REDIS_DB_HOST= | ||
| REDIS_DB_PORT= | ||
| REDIS_DB_PASSWORD= | ||
|
|
||
| SONIOX_API_KEY= | ||
| # API Keys for Core Services | ||
| OPENAI_API_KEY= | ||
| DEEPGRAM_API_KEY= | ||
|
|
||
| ADMIN_KEY= | ||
| OPENAI_API_KEY= | ||
|
|
||
| GITHUB_TOKEN= | ||
| # Base API URL for client connections | ||
| BASE_API_URL= | ||
|
|
||
| ################################################# | ||
| # OPTIONAL ENVIRONMENT VARIABLES # | ||
| ################################################# | ||
| # These variables enable additional features but are not required for core functionality | ||
|
|
||
| # Additional API Keys | ||
| HUGGINGFACE_TOKEN= | ||
| SONIOX_API_KEY= | ||
| GITHUB_TOKEN= | ||
| WORKFLOW_API_KEY= | ||
| HUME_API_KEY= | ||
| HUME_CALLBACK_URL= | ||
|
|
||
| HOSTED_PUSHER_API_URL= | ||
| # Google Cloud Storage Buckets | ||
| BUCKET_SPEECH_PROFILES= | ||
| BUCKET_PLUGINS_LOGOS= | ||
| BUCKET_POSTPROCESSING= | ||
| BUCKET_MEMORIES_RECORDINGS= | ||
| BUCKET_TEMPORAL_SYNC_LOCAL= | ||
| BUCKET_APP_THUMBNAILS= | ||
| BUCKET_CHAT_FILES= | ||
|
|
||
| # Vector Database (for advanced retrieval) | ||
| PINECONE_API_KEY= | ||
| PINECONE_INDEX_NAME= | ||
|
|
||
| # Search and Indexing | ||
| TYPESENSE_HOST= | ||
| TYPESENSE_HOST_PORT= | ||
| TYPESENSE_API_KEY= | ||
|
|
||
| # Webhooks and Notifications | ||
| HOSTED_PUSHER_API_URL= | ||
|
|
||
| # Payment Processing | ||
| STRIPE_API_KEY= | ||
| STRIPE_WEBHOOK_SECRET= | ||
| STRIPE_CONNECT_WEBHOOK_SECRET= | ||
|
|
||
| BASE_API_URL= | ||
| # HTTP Timeouts (in seconds) | ||
| HTTP_GET_TIMEOUT=30 | ||
| HTTP_PUT_TIMEOUT=30 | ||
| HTTP_PATCH_TIMEOUT=30 | ||
| HTTP_DELETE_TIMEOUT=30 | ||
|
|
||
| # Developer Options | ||
| LOCAL_DEVELOPMENT=false | ||
| NO_SOCKET_TIMEOUT=false | ||
|
|
||
| # Admin Options | ||
| MARKETPLACE_APP_REVIEWERS= |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this will break the gcp deployment workflow (not really sure). @skywinder can you pls once cross check the
dockerfile.datadogfile and also thegcp_backend.ymlfile in.github/workflows(if you haven't already)Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GCP deployment workflow specifically uses
Dockerfile.datadog, not the Dockerfile.so the immediate changes to your regular Dockerfile won't directly break the GCP workflow.
So, gcp_backend.yml refer to dockerfile.datadog, which is not affected.
omi/.github/workflows/gcp_backend.yml
Lines 65 to 66 in 3eb8df8
It has 2 differences
Path: in Dockerfile vs Dockerfile.datadog: - since we are running it from
/backendfolder directlyOtherwise, we’ll have to move this Dockerfile to ../ to make it work, but I think the proper location is in the backend folder.
Port: I set 8000 from backend readme and docs.
omi/backend/README.md
Lines 86 to 87 in 43508d6
I see that in Dockerfile.datadog it's 8080. Should I set it to 8080 in dev setup as well?