mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-22 10:40:46 +00:00
fix(datadog): mark Meta model_name/provider ReadOnly for LIT012
TypedDict writable fields trip the type-discipline gate; match neighboring Meta fields by wrapping the new keys in ReadOnly.
This commit is contained in:
parent
b48a264d68
commit
849d7f91f4
1 changed files with 2 additions and 2 deletions
|
|
@ -71,8 +71,8 @@ class Meta(TypedDict, total=False):
|
|||
kind: Literal["llm", "tool", "task", "embedding", "retrieval"]
|
||||
# Top-level model fields required for Datadog cost attribution on llm/embedding spans.
|
||||
# Values are also kept under metadata for backwards compatibility.
|
||||
model_name: str
|
||||
model_provider: str
|
||||
model_name: ReadOnly[str]
|
||||
model_provider: ReadOnly[str]
|
||||
input: InputMeta # The span's input information.
|
||||
output: OutputMeta # The span's output information.
|
||||
metadata: dict[str, Any]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue