Skip to content

Commit 24df70a

Browse files
authored
fix: use "detect_language" instead of "auto" for lang detection enum value (#75)
To achieve consistency with integration_openai and integration_deepl's values. And this should not break anything I suppose since in this app we don't validate the origin language. The provider is unregistered and re-registered on upgrade so the new values should be picked up. Signed-off-by: Anupam Kumar <kyteinsky@gmail.com>
1 parent a317594 commit 24df70a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ async def lifespan(_: FastAPI):
8181
APP_ID = "translate2"
8282
TASK_TYPE_ID = "core:text2text:translate"
8383
IDLE_POLLING_INTERVAL = config["idle_polling_interval"]
84-
DETECT_LANGUAGE = ShapeEnumValue(name="Detect Language", value="auto")
84+
DETECT_LANGUAGE = ShapeEnumValue(name="Detect Language", value="detect_language")
8585
APP = FastAPI(lifespan=lifespan)
8686

8787

0 commit comments

Comments
 (0)