From 058b421ccd151d8087303ce3d7abdf792ec6cac5 Mon Sep 17 00:00:00 2001 From: Thorsten Klein Date: Wed, 9 Oct 2024 23:13:00 +0200 Subject: [PATCH] change: use model-provider tool instead of gateway credential (#137) --- delete.gpt | 1 - ingest.gpt | 2 +- tool.gpt | 4 ++-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/delete.gpt b/delete.gpt index cdf3880a..4b4fe0a2 100644 --- a/delete.gpt +++ b/delete.gpt @@ -1,5 +1,4 @@ Name: Knowledge Deletion Description: Delete a dataset. -Credential: github.com/gptscript-ai/gateway-creds as github.com/gptscript-ai/gateway #!${GPTSCRIPT_TOOL_DIR}/bin/gptscript-go-tool delete-dataset "${GPTSCRIPT_INPUT}" diff --git a/ingest.gpt b/ingest.gpt index 2a0103d1..f72eccad 100644 --- a/ingest.gpt +++ b/ingest.gpt @@ -1,5 +1,5 @@ Name: Knowledge Ingestion Description: Ingest content into a dataset. -Credential: github.com/gptscript-ai/gateway-creds as github.com/gptscript-ai/gateway +Tools: 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 c3d3ae95..cde09257 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. -Credential: github.com/gptscript-ai/gateway-creds as github.com/gptscript-ai/gateway +Tools: 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. -Credential: github.com/gptscript-ai/gateway-creds as github.com/gptscript-ai/gateway +Tools: github.com/gptscript-ai/credentials/model-provider Type: context Input Filter: QueryRelevancy Output Filter: KnowledgeInstructions