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
|
||||
name: text-translate
|
||||
version: 0.1.0
|
||||
|
||||
# Capability provided by this module.
|
||||
provides:
|
||||
- capability: text.translate
|
||||
version: 0.1.0
|
||||
|
||||
# Inputs the invoke function accepts.
|
||||
inputs:
|
||||
# Source text to translate.
|
||||
text: text
|
||||
# Target language name in plain English (e.g. "German",
|
||||
# "French", "ja-JP" — anything the configured LLM
|
||||
# understands).
|
||||
target_language: text
|
||||
# Optional source language hint. Empty string lets the model
|
||||
# auto-detect.
|
||||
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 translate.
|
||||
de: Quelltext, der übersetzt werden soll.
|
||||
target_language:
|
||||
type: text
|
||||
description:
|
||||
en: |
|
||||
Target language name in plain English (e.g. "German",
|
||||
"French", "ja-JP" — anything the configured LLM
|
||||
understands).
|
||||
de: |
|
||||
Zielsprache in Klartext (z. B. "German", "French",
|
||||
"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:
|
||||
# The translated text.
|
||||
translation: text
|
||||
# Echo of the source-language input for downstream audit.
|
||||
source_language: text
|
||||
# Echo of the target-language input.
|
||||
target_language: text
|
||||
# Endpoint the translation 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
|
||||
translation:
|
||||
type: text
|
||||
description:
|
||||
en: The translated text.
|
||||
de: Der übersetzte Text.
|
||||
source_language:
|
||||
type: text
|
||||
description:
|
||||
en: Echo of the source-language input for downstream audit.
|
||||
de: Echo des source_language-Inputs für Downstream-Audit.
|
||||
target_language:
|
||||
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:
|
||||
- "net: localhost"
|
||||
- "net: 127.0.0.1"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue