feat: schema_version 3 with DE/EN field descriptions
Some checks failed
CI / Linux x86_64 (Forgejo) (push) Failing after 1s
Some checks failed
CI / Linux x86_64 (Forgejo) (push) Failing after 1s
Signed-off-by: flemming-it <sf@flemming.it>
This commit is contained in:
parent
d356d3584b
commit
64d44f76f1
1 changed files with 70 additions and 32 deletions
102
module.yaml
102
module.yaml
|
|
@ -1,47 +1,85 @@
|
||||||
schema_version: 2
|
schema_version: 3
|
||||||
provider: fai
|
provider: fai
|
||||||
name: text-translate
|
name: text-translate
|
||||||
version: 0.1.0
|
version: 0.1.0
|
||||||
|
|
||||||
# Capability provided by this module.
|
|
||||||
provides:
|
provides:
|
||||||
- capability: text.translate
|
- capability: text.translate
|
||||||
version: 0.1.0
|
version: 0.1.0
|
||||||
|
|
||||||
# Inputs the invoke function accepts.
|
|
||||||
inputs:
|
inputs:
|
||||||
# Source text to translate.
|
text:
|
||||||
text: text
|
type: text
|
||||||
# Target language name in plain English (e.g. "German",
|
description:
|
||||||
# "French", "ja-JP" — anything the configured LLM
|
en: Source text to translate.
|
||||||
# understands).
|
de: Quelltext, der übersetzt werden soll.
|
||||||
target_language: text
|
target_language:
|
||||||
# Optional source language hint. Empty string lets the model
|
type: text
|
||||||
# auto-detect.
|
description:
|
||||||
source_language: text
|
en: |
|
||||||
# Ollama-shaped /api/chat endpoint.
|
Target language name in plain English (e.g. "German",
|
||||||
endpoint: text
|
"French", "ja-JP" — anything the configured LLM
|
||||||
# Model identifier (e.g. "qwen2.5:14b").
|
understands).
|
||||||
model: text
|
de: |
|
||||||
# Optional bearer token for cloud-hosted endpoints.
|
Zielsprache in Klartext (z. B. "German", "French",
|
||||||
api_key: text
|
"ja-JP" — alles was das konfigurierte LLM versteht).
|
||||||
|
source_language:
|
||||||
|
type: text
|
||||||
|
description:
|
||||||
|
en: |
|
||||||
|
Optional source language hint. Empty = let the model
|
||||||
|
auto-detect.
|
||||||
|
de: |
|
||||||
|
Optionaler Hinweis zur Quellsprache. Leer = das Modell
|
||||||
|
erkennt sie selbst.
|
||||||
|
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:
|
outputs:
|
||||||
# The translated text.
|
translation:
|
||||||
translation: text
|
type: text
|
||||||
# Echo of the source-language input for downstream audit.
|
description:
|
||||||
source_language: text
|
en: The translated text.
|
||||||
# Echo of the target-language input.
|
de: Der übersetzte Text.
|
||||||
target_language: text
|
source_language:
|
||||||
# Endpoint the translation was generated against.
|
type: text
|
||||||
model_endpoint: text
|
description:
|
||||||
# Model identifier as supplied to the LLM API.
|
en: Echo of the source-language input for downstream audit.
|
||||||
model_name: text
|
de: Echo des source_language-Inputs für Downstream-Audit.
|
||||||
# SHA-256 digest of the served Ollama model (when reachable).
|
target_language:
|
||||||
model_digest: text
|
type: text
|
||||||
|
description:
|
||||||
|
en: Echo of the target-language input.
|
||||||
|
de: Echo des target_language-Inputs.
|
||||||
|
model_endpoint:
|
||||||
|
type: text
|
||||||
|
description:
|
||||||
|
en: Endpoint the translation was generated against.
|
||||||
|
de: Endpunkt, gegen den die Übersetzung 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:
|
permissions:
|
||||||
- "net: localhost"
|
- "net: localhost"
|
||||||
- "net: 127.0.0.1"
|
- "net: 127.0.0.1"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue