From b55fdd1449c48151e9d4c16ee1989bf48ffa19af Mon Sep 17 00:00:00 2001 From: Grant Linville Date: Fri, 11 Oct 2024 04:18:35 -0400 Subject: [PATCH] fix: use credential keyword for credential references (#138) Signed-off-by: Grant Linville --- ingest.gpt | 2 +- tool.gpt | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ingest.gpt b/ingest.gpt index f72ecca..20a4f17 100644 --- a/ingest.gpt +++ b/ingest.gpt @@ -1,5 +1,5 @@ Name: Knowledge Ingestion Description: Ingest content into a dataset. -Tools: github.com/gptscript-ai/credentials/model-provider +Credential: github.com/gptscript-ai/credentials/model-provider #!${GPTSCRIPT_TOOL_DIR}/bin/gptscript-go-tool ingest --prune --dataset ${GPTSCRIPT_DATASET} "${GPTSCRIPT_INPUT}" diff --git a/tool.gpt b/tool.gpt index 1c3f689..1773133 100644 --- a/tool.gpt +++ b/tool.gpt @@ -16,7 +16,7 @@ If the answers that the knowledge tool returns seem irrelevant, you may use anot --- Name: Knowledge Retrieval Description: Retrieve information from files uploaded by the user. -Tools: github.com/gptscript-ai/credentials/model-provider +Credential: github.com/gptscript-ai/credentials/model-provider Param: query: The query to search for in the knowledge base. It will be used for semantic similarity search, so enhance it accordingly to yield good results. Param: debug: (OPTIONAL) Set to "true" to enable debug mode - only use if you are explicitly asked to do so. @@ -25,7 +25,7 @@ Param: debug: (OPTIONAL) Set to "true" to enable debug mode - only use if you ar --- Name: Knowledge Retrieval Context Description: Add knowledge retrieved from uploaded files to the context. -Tools: github.com/gptscript-ai/credentials/model-provider +Credential: github.com/gptscript-ai/credentials/model-provider Type: context Input Filter: QueryRelevancy Output Filter: KnowledgeInstructions @@ -185,4 +185,4 @@ Params: input: Path to input file Params: output: Path to output file where the extracted markdown content should be written to. Should end with .md Params: loader: Optionally choose a specific loader for the file to not rely on the default. Only use if explicitly specified. -#!${GPTSCRIPT_TOOL_DIR}/bin/gptscript-go-tool load ${INPUT} ${OUTPUT} ${LOADER:+--loader=${LOADER}} \ No newline at end of file +#!${GPTSCRIPT_TOOL_DIR}/bin/gptscript-go-tool load ${INPUT} ${OUTPUT} ${LOADER:+--loader=${LOADER}}