mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-04-25 16:36:21 +02:00
* Fix pulsar manager template import * Add pattern categories. Update parameters with new schema. * Add more parameters to config
32 lines
972 B
Jsonnet
32 lines
972 B
Jsonnet
{
|
|
pattern: {
|
|
name: "openai",
|
|
icon: "🤖💬",
|
|
title: "Add OpenAI LLM endpoint for text completion",
|
|
description: "This pattern integrates an OpenAI LLM service for text completion operations. You need an OpenAI subscription and have an API key to be able to use this service.",
|
|
requires: ["pulsar", "trustgraph"],
|
|
features: ["llm"],
|
|
args: [
|
|
{
|
|
name: "openai-max-output-tokens",
|
|
label: "Maximum output tokens",
|
|
type: "integer",
|
|
description: "Limit on number tokens to generate",
|
|
default: 4096,
|
|
required: true,
|
|
},
|
|
{
|
|
name: "openai-temperature",
|
|
label: "Temperature",
|
|
type: "slider",
|
|
description: "Controlling predictability / creativity balance",
|
|
min: 0,
|
|
max: 1,
|
|
step: 0.05,
|
|
default: 0.5,
|
|
},
|
|
],
|
|
category: [ "llm" ],
|
|
},
|
|
module: "components/openai.jsonnet",
|
|
}
|