feat: schema_version 3 with DE/EN field descriptions
Some checks failed
CI / Linux x86_64 (Forgejo) (push) Failing after 2s
Some checks failed
CI / Linux x86_64 (Forgejo) (push) Failing after 2s
Signed-off-by: flemming-it <sf@flemming.it>
This commit is contained in:
parent
447ed0af31
commit
04d663a86f
1 changed files with 71 additions and 28 deletions
99
module.yaml
99
module.yaml
|
|
@ -1,4 +1,4 @@
|
|||
schema_version: 2
|
||||
schema_version: 3
|
||||
provider: fai
|
||||
name: text-summarize
|
||||
version: 0.1.0
|
||||
|
|
@ -10,36 +10,79 @@ provides:
|
|||
|
||||
# Inputs the invoke function accepts.
|
||||
inputs:
|
||||
# Source text to summarise.
|
||||
text: text
|
||||
# Style / shape of the summary, e.g. "one paragraph",
|
||||
# "three bullet points", "a tweet". Defaults to
|
||||
# "one paragraph" when omitted.
|
||||
style: text
|
||||
# Optional output language hint, e.g. "German", "ja-JP".
|
||||
# Empty = same language as the source.
|
||||
language: text
|
||||
# Ollama-shaped /api/chat endpoint.
|
||||
endpoint: text
|
||||
# Model identifier (e.g. "qwen2.5:14b").
|
||||
model: text
|
||||
# Optional bearer token for cloud-hosted endpoints.
|
||||
api_key: text
|
||||
text:
|
||||
type: text
|
||||
description:
|
||||
en: Source text to summarise.
|
||||
de: Quelltext, der zusammengefasst werden soll.
|
||||
style:
|
||||
type: text
|
||||
description:
|
||||
en: |
|
||||
Style / shape of the summary, e.g. "one paragraph",
|
||||
"three bullet points", "a tweet". Defaults to
|
||||
"one paragraph" when omitted.
|
||||
de: |
|
||||
Stil/Form der Zusammenfassung, z. B. "ein Absatz",
|
||||
"drei Bulletpoints", "ein Tweet". Default ist
|
||||
"ein Absatz".
|
||||
language:
|
||||
type: text
|
||||
description:
|
||||
en: |
|
||||
Optional output language hint, e.g. "German", "ja-JP".
|
||||
Empty = same language as the source.
|
||||
de: |
|
||||
Optionale Ausgabesprache, z. B. "German", "ja-JP".
|
||||
Leer = gleiche Sprache wie die Quelle.
|
||||
endpoint:
|
||||
type: text
|
||||
description:
|
||||
en: Ollama-shaped /api/chat endpoint.
|
||||
de: Ollama-kompatibler /api/chat-Endpunkt.
|
||||
model:
|
||||
type: text
|
||||
description:
|
||||
en: Model identifier (e.g. "qwen2.5:14b").
|
||||
de: Modell-Identifier (z. B. "qwen2.5:14b").
|
||||
api_key:
|
||||
type: text
|
||||
description:
|
||||
en: Optional bearer token for cloud-hosted endpoints.
|
||||
de: Optionaler Bearer-Token für Cloud-Endpunkte.
|
||||
|
||||
# Outputs produced.
|
||||
outputs:
|
||||
# The summary text.
|
||||
summary: text
|
||||
# Echo of the style input for downstream audit.
|
||||
style: text
|
||||
# Echo of the language input.
|
||||
language: text
|
||||
# Endpoint the summary was generated against.
|
||||
model_endpoint: text
|
||||
# Model identifier as supplied to the LLM API.
|
||||
model_name: text
|
||||
# SHA-256 digest of the served Ollama model (when reachable).
|
||||
model_digest: text
|
||||
summary:
|
||||
type: text
|
||||
description:
|
||||
en: The summary text.
|
||||
de: Die zusammengefasste Antwort.
|
||||
style:
|
||||
type: text
|
||||
description:
|
||||
en: Echo of the style input for downstream audit.
|
||||
de: Echo des Style-Inputs für Downstream-Audit.
|
||||
language:
|
||||
type: text
|
||||
description:
|
||||
en: Echo of the language input.
|
||||
de: Echo des Language-Inputs.
|
||||
model_endpoint:
|
||||
type: text
|
||||
description:
|
||||
en: Endpoint the summary was generated against.
|
||||
de: Endpunkt, gegen den die Zusammenfassung erzeugt wurde.
|
||||
model_name:
|
||||
type: text
|
||||
description:
|
||||
en: Model identifier as supplied to the LLM API.
|
||||
de: An die LLM-API übergebenes Modell.
|
||||
model_digest:
|
||||
type: text
|
||||
description:
|
||||
en: SHA-256 digest of the served Ollama model (when reachable).
|
||||
de: SHA-256-Digest des bedienten Ollama-Modells (wenn erreichbar).
|
||||
|
||||
# Permissions required.
|
||||
permissions:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue