libretranslate_action.py
Python · 122 lines23 class Valves(BaseModel):24 LIBRE_TRANSLATE_URL: str = Field(25 default="http://localhost:5000",26 description="The URL of the LibreTranslate instance.",27 )28 29 class UserValves(BaseModel):30 SOURCE_LANGUAGE: str = Field(31 default="auto", description="User-specific source language for assistant messages"32 )33 TARGET_LANGUAGE: str = Field(34 default="de", description="User-specific target language for assistant messages" Translate the response to a new language using LibreTranslate API
0
0 
