Skip to content

Commit ba4a233

Browse files
committedSep 12, 2024
chore: override knowledge credential in test
The knowledge tool isn't actually used in the test, but it is a good example of a large tool, so it is included. Signed-off-by: Donnie Adams <[email protected]>
1 parent eb094a6 commit ba4a233

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎tests/test_gptscript.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,10 @@ async def process_event(r: Run, frame: CallFrame | RunFrame | PromptFrame):
503503
call_finish_seen = True
504504

505505
run = gptscript.run(os.getcwd() + "/tests/fixtures/global-tools.gpt",
506-
Options(disableCache=True),
506+
Options(
507+
disableCache=True,
508+
credentialOverrides=["github.com/gptscript-ai/gateway:OPENAI_API_KEY"],
509+
),
507510
event_handlers=[process_event],
508511
)
509512

0 commit comments

Comments
 (0)