File tree 2 files changed +11
-3
lines changed
2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 9
9
execute_notebooks :
10
10
runs-on : ubuntu-latest
11
11
12
+ env :
13
+ COHERE_API_KEY : ${{ secrets.COHERE_API_KEY }}
14
+ OPENAI_API_KEY : ${{ secrets.OPENAI_API_KEY }}
15
+
16
+
12
17
steps :
13
18
- name : Checkout repository
14
19
uses : actions/checkout@v2
15
20
16
21
- name : Set up Python
17
22
uses : actions/setup-python@v2
18
23
with :
19
- python-version : 3.x
24
+ python-version : 3.11. x
20
25
21
26
- name : Install dependencies
22
27
run : |
23
- pip install jupyter nbconvert
28
+ make full; pip install jupyter nbconvert; pip install .
24
29
25
30
- name : Execute notebooks and check for errors
26
31
run : |
Original file line number Diff line number Diff line change 298
298
" from guardrails import Guard\n " ,
299
299
" from guardrails.validators import ProvenanceV0\n " ,
300
300
" from typing import List, Union\n " ,
301
+ " import os\n " ,
302
+ " \n " ,
303
+ " api_key = os.environ[\" COHERE_API_KEY\" ]\n " ,
301
304
" \n " ,
302
305
" # Create a cohere client\n " ,
303
- " cohere_client = cohere.Client(api_key=\" <Cohere_API_KEY> \" )\n " ,
306
+ " cohere_client = cohere.Client(api_key=api_key )\n " ,
304
307
" \n " ,
305
308
" \n " ,
306
309
" def embed_function(text: Union[str, List[str]]) -> np.ndarray:\n " ,
You can’t perform that action at this time.
0 commit comments