Skip to content

Commit 9331d3d

Browse files
authored
Merge pull request #566 from aurelio-labs/james/enable-multi-routes
feat: enable multi routes for v0.1
2 parents 6aacd0b + 1545076 commit 9331d3d

28 files changed

+541
-346
lines changed

.github/workflows/test.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,30 @@ name: Test
22

33
on:
44
workflow_call:
5+
secrets:
6+
OPENAI_API_KEY:
7+
required: false
8+
COHERE_API_KEY:
9+
required: false
10+
CODECOV_TOKEN:
11+
required: false
512

613

714
jobs:
815
build:
916
runs-on: ubuntu-latest
17+
env:
18+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY || '' }}
19+
COHERE_API_KEY: ${{ secrets.COHERE_API_KEY || '' }}
20+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
1021
services:
1122
pinecone:
1223
image: ghcr.io/pinecone-io/pinecone-local:latest
1324
env:
1425
PORT: 5080
1526
PINECONE_HOST: localhost
27+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY || '' }}
28+
COHERE_API_KEY: ${{ secrets.COHERE_API_KEY || '' }}
1629
ports:
1730
- "5080-6000:5080-6000"
1831

@@ -44,14 +57,10 @@ jobs:
4457
env:
4558
PINECONE_API_KEY: pclocal
4659
PINECONE_API_BASE_URL: http://localhost:5080
47-
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
48-
COHERE_API_KEY: ${{ secrets.COHERE_API_KEY }}
4960
run: |
5061
make test
5162
- name: Upload coverage to Codecov
5263
uses: codecov/codecov-action@v2
53-
env:
54-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
5564
with:
5665
file: ./coverage.xml
5766
fail_ci_if_error: false

.github/workflows/triggers_pr.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,7 @@ jobs:
2828
name: "Tests"
2929
if: ${{ fromJson(needs.diff.outputs.tags).code.changed }}
3030
uses: ./.github/workflows/test.yml
31+
secrets:
32+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
33+
COHERE_API_KEY: ${{ secrets.COHERE_API_KEY }}
34+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

docs/00-introduction.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
},
5454
"outputs": [],
5555
"source": [
56-
"!pip install -qU \"semantic-router==0.1.2\""
56+
"!pip install -qU \"semantic-router>=0.1.3\""
5757
]
5858
},
5959
{

docs/01-save-load-from-file.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
},
4747
"outputs": [],
4848
"source": [
49-
"!pip install -qU \"semantic-router==0.1.2\""
49+
"!pip install -qU \"semantic-router>=0.1.3\""
5050
]
5151
},
5252
{

docs/02-dynamic-routes.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
],
9696
"source": [
9797
"!pip install tzdata\n",
98-
"!pip install -qU \"semantic-router==0.1.2\""
98+
"!pip install -qU \"semantic-router>=0.1.3\""
9999
]
100100
},
101101
{

docs/03-basic-langchain-agent.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"outputs": [],
5353
"source": [
5454
"!pip install -qU \\\n",
55-
" \"semantic-router==0.1.2\" \\\n",
55+
" \"semantic-router>=0.1.3\" \\\n",
5656
" langchain==0.0.352 \\\n",
5757
" openai>=1.6.1"
5858
]

docs/06-threshold-optimization.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
},
3838
"outputs": [],
3939
"source": [
40-
"!pip install -qU \"semantic-router==0.1.2\""
40+
"!pip install -qU \"semantic-router>=0.1.3\""
4141
]
4242
},
4343
{

docs/08-async-dynamic-routes.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
"outputs": [],
7979
"source": [
8080
"!pip install -qU \\\n",
81-
" \"semantic-router==0.1.2\" \\\n",
81+
" \"semantic-router>=0.1.3\" \\\n",
8282
" tzdata"
8383
]
8484
},

docs/09-route-filter.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
},
5454
"outputs": [],
5555
"source": [
56-
"!pip install -qU \"semantic-router==0.1.2\""
56+
"!pip install -qU \"semantic-router>=0.1.3\""
5757
]
5858
},
5959
{

docs/indexes/local.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"metadata": {},
1414
"outputs": [],
1515
"source": [
16-
"!pip install -qU \"semantic-router==0.1.2\""
16+
"!pip install -qU \"semantic-router>=0.1.3\""
1717
]
1818
},
1919
{

0 commit comments

Comments
 (0)