Skip to content

Commit 7976f2a

Browse files
langfuse-botlangfuse-bot
andauthored
feat(api): update API spec from langfuse/langfuse b8fab27 (#1851)
Co-authored-by: langfuse-bot <langfuse-bot@langfuse.com>
1 parent 4eeb2f2 commit 7976f2a

3 files changed

Lines changed: 5 additions & 7 deletions

File tree

‎langfuse/api/commons/types/observation_v2.py‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,7 @@ class ObservationV2(UniversalBaseModel):
157157
Additional metadata of the observation
158158
"""
159159

160-
provided_model_name: typing_extensions.Annotated[
161-
typing.Optional[str], FieldMetadata(alias="providedModelName")
162-
] = pydantic.Field(default=None)
160+
model: typing.Optional[str] = pydantic.Field(default=None)
163161
"""
164162
The model name as provided by the user
165163
"""

‎langfuse/api/observations/client.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def get_many(
6363
- `time` - completionStartTime, createdAt, updatedAt
6464
- `io` - input, output
6565
- `metadata` - metadata (truncated to 200 chars by default, use `expandMetadata` to get full values)
66-
- `model` - providedModelName, internalModelId, modelParameters
66+
- `model` - model, internalModelId, modelParameters
6767
- `usage` - usageDetails, costDetails, totalCost, usagePricingTierName
6868
- `prompt` - promptId, promptName, promptVersion
6969
- `metrics` - latency, timeToFirstToken
@@ -347,7 +347,7 @@ async def get_many(
347347
- `time` - completionStartTime, createdAt, updatedAt
348348
- `io` - input, output
349349
- `metadata` - metadata (truncated to 200 chars by default, use `expandMetadata` to get full values)
350-
- `model` - providedModelName, internalModelId, modelParameters
350+
- `model` - model, internalModelId, modelParameters
351351
- `usage` - usageDetails, costDetails, totalCost, usagePricingTierName
352352
- `prompt` - promptId, promptName, promptVersion
353353
- `metrics` - latency, timeToFirstToken

‎langfuse/api/observations/raw_client.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def get_many(
6161
- `time` - completionStartTime, createdAt, updatedAt
6262
- `io` - input, output
6363
- `metadata` - metadata (truncated to 200 chars by default, use `expandMetadata` to get full values)
64-
- `model` - providedModelName, internalModelId, modelParameters
64+
- `model` - model, internalModelId, modelParameters
6565
- `usage` - usageDetails, costDetails, totalCost, usagePricingTierName
6666
- `prompt` - promptId, promptName, promptVersion
6767
- `metrics` - latency, timeToFirstToken
@@ -404,7 +404,7 @@ async def get_many(
404404
- `time` - completionStartTime, createdAt, updatedAt
405405
- `io` - input, output
406406
- `metadata` - metadata (truncated to 200 chars by default, use `expandMetadata` to get full values)
407-
- `model` - providedModelName, internalModelId, modelParameters
407+
- `model` - model, internalModelId, modelParameters
408408
- `usage` - usageDetails, costDetails, totalCost, usagePricingTierName
409409
- `prompt` - promptId, promptName, promptVersion
410410
- `metrics` - latency, timeToFirstToken

0 commit comments

Comments
 (0)