From af9092dd3bafb245b8a1744e604227c608119bf8 Mon Sep 17 00:00:00 2001 From: Donnie Adams Date: Wed, 20 Nov 2024 21:47:18 -0500 Subject: [PATCH] fix: set embedding model for knowledge retrieval Signed-off-by: Donnie Adams --- pkg/invoke/invoker.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/invoke/invoker.go b/pkg/invoke/invoker.go index 64a8fb82..f2e45bc2 100644 --- a/pkg/invoke/invoker.go +++ b/pkg/invoke/invoker.go @@ -500,6 +500,7 @@ func (i *Invoker) Resume(ctx context.Context, c kclient.WithWatch, thread *v1.Th "OTTO8_WORKFLOW_ID="+run.Spec.WorkflowName, "OTTO8_WORKFLOW_STEP_ID="+run.Spec.WorkflowStepID, "OTTO8_AGENT_ID="+run.Spec.AgentName, + "OPENAI_EMBEDDING_MODEL="+string(types.DefaultModelTextEmbedding), "GPTSCRIPT_HTTP_ENV=OTTO8_TOKEN,OTTO8_RUN_ID,OTTO8_THREAD_ID,OTTO8_WORKFLOW_ID,OTTO8_WORKFLOW_STEP_ID,OTTO8_AGENT_ID", ), DefaultModel: run.Spec.DefaultModel,