Remove Word equation mode from config
This commit is contained in:
@@ -6,7 +6,7 @@ from pathlib import Path
|
||||
from typing import Any, Literal
|
||||
|
||||
Provider = Literal["ollama", "gemini"]
|
||||
MathTextFormat = Literal["plain", "unicode", "unicode_math", "word_equation"]
|
||||
MathTextFormat = Literal["plain", "unicode", "unicode_math"]
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
@@ -44,8 +44,8 @@ def _coerce_timeout(value: Any) -> float | None:
|
||||
|
||||
def _coerce_math_text_format(value: Any) -> MathTextFormat:
|
||||
mode = str(value or "plain").lower().strip()
|
||||
if mode not in {"plain", "unicode", "unicode_math", "word_equation"}:
|
||||
raise ValueError("config.math_text_format doit être 'plain', 'unicode' ou 'word_equation'")
|
||||
if mode not in {"plain", "unicode", "unicode_math"}:
|
||||
raise ValueError("config.math_text_format doit être 'plain' ou 'unicode'")
|
||||
return mode # type: ignore[return-value]
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user