trustgraph/templates/components/claude.jsonnet
2024-08-22 00:19:55 +01:00

42 lines
791 B
Jsonnet

local base = import "base.jsonnet";
local images = import "images.jsonnet";
local url = import "url.jsonnet";
{
services +: {
"text-completion": base + {
image: images.trustgraph,
command: [
"text-completion-claude",
"-p",
url.pulsar,
"-k",
"${CLAUDE_KEY}",
"-x",
"4096",
"-t",
"0.0",
],
},
"text-completion-rag": base + {
image: images.trustgraph,
command: [
"text-completion-claude",
"-p",
url.pulsar,
"-k",
"${CLAUDE_KEY}",
"-x",
"4096",
"-t",
"0.0",
"-i",
"non-persistent://tg/request/text-completion-rag",
"-o",
"non-persistent://tg/response/text-completion-rag-response",
],
},
},
}