From 1132a7904a05d755972a598787b7eae5dde5ffb3 Mon Sep 17 00:00:00 2001 From: Vasilisa Parshikova Date: Wed, 11 Mar 2026 22:19:23 +0400 Subject: [PATCH] (sap) fix after bot review --- docs/my-website/docs/providers/sap.md | 2 +- litellm/llms/sap/chat/models.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/my-website/docs/providers/sap.md b/docs/my-website/docs/providers/sap.md index 0b29f66ea57..fb7ca0e8f96 100644 --- a/docs/my-website/docs/providers/sap.md +++ b/docs/my-website/docs/providers/sap.md @@ -621,7 +621,7 @@ response = completion(model="sap/gpt-4o", masking=masking_config) print(response.choices[0].message.content) -###Data masking module also available for embedding +# Data masking module also available for embedding response = embedding(model="sap/text-embedding-3-small", input=mock_cv, masking=masking_config) diff --git a/litellm/llms/sap/chat/models.py b/litellm/llms/sap/chat/models.py index d224bc86a6b..c35b2ec72a5 100644 --- a/litellm/llms/sap/chat/models.py +++ b/litellm/llms/sap/chat/models.py @@ -290,7 +290,7 @@ class DPIMethodConstant(BaseModel): """ Replaces the entity with the specified value followed by an incrementing number """ - method: str = "constant" + method: Literal["constant"] = "constant" value: str @@ -298,7 +298,7 @@ class DPIMethodFabricatedData(BaseModel): """ Replaces the entity with a randomly generated value appropriate to its type. """ - method: str = "fabricated_data" + method: Literal["fabricated_data"] = "fabricated_data" class DPICustomEntity(BaseModel):