Skip to content

Commit

Permalink
added env param to point the integration to the Minimap backend
Browse files Browse the repository at this point in the history
  • Loading branch information
ClaytonSmith committed Jun 17, 2024
1 parent 0f45af6 commit b4cb784
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy_backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
--platform=managed \
--region=us-central1 \
--allow-unauthenticated \
--update-env-vars=DATABASE_URL=${{ secrets.DATABASE_URL }},COHERE_API_KEY=${{ secrets.COHERE_API_KEY }} \
--update-env-vars=DATABASE_URL=${{ secrets.DATABASE_URL }},COHERE_API_KEY=${{ secrets.COHERE_API_KEY }},MINIMAP_API_URL=${{ vars.MINIMAP_API_URL }} \
--memory=4Gi \
--cpu=4 \
--max-instances=1
2 changes: 1 addition & 1 deletion src/backend/tools/minimap.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class MinimapAPIWrapper(BaseModel):

parse: Any #: :meta private:

base_url: str = "http://host.docker.internal:8081"
base_url: str = os.environ.get("MINIMAP_API_URL", "http://host.docker.internal:8081")
search_endpoint: str = urljoin(base_url, "/api/v0/platform/elastic_search")

max_retry: int = 5
Expand Down

0 comments on commit b4cb784

Please sign in to comment.