File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -285,6 +285,7 @@ jobs:
285
285
cd core
286
286
npm test
287
287
env :
288
+ IGNORE_API_KEY_TESTS : ${{ github.event.pull_request.head.repo.fork }}
288
289
OPENAI_API_KEY : ${{ secrets.OPENAI_API_KEY }}
289
290
ANTHROPIC_API_KEY : ${{ secrets.ANTHROPIC_API_KEY }}
290
291
GEMINI_API_KEY : ${{ secrets.GEMINI_API_KEY }}
Original file line number Diff line number Diff line change @@ -178,6 +178,15 @@ function testLLM(
178
178
}
179
179
180
180
describe ( "LLM" , ( ) => {
181
+ if ( process . env . IGNORE_API_KEY_TESTS === "true" ) {
182
+ test ( "Skipping API key tests" , ( ) => {
183
+ console . log (
184
+ "Skipping API key tests due to IGNORE_API_KEY_TESTS being set" ,
185
+ ) ;
186
+ } ) ;
187
+ return ;
188
+ }
189
+
181
190
testLLM (
182
191
new Anthropic ( {
183
192
model : "claude-3-5-sonnet-latest" ,
You can’t perform that action at this time.
0 commit comments