🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
fix(api-docs): sync Fern API types with TypeScript definitions (#11421)
Steffen Schmitz41f064cb0fd2
diff --git a/.claude/skills/backend-dev-guidelines/SKILL.md b/.claude/skills/backend-dev-guidelines/SKILL.mdindex 2df427998c..f8de1e76c5 100644--- a/.claude/skills/backend-dev-guidelines/SKILL.md+++ b/.claude/skills/backend-dev-guidelines/SKILL.md@@ -50,6 +50,7 @@ Automatically activates when working on:- [ ] **Authentication**: Authorization via basic auth- [ ] **Validation**: Zod schemas for query/body/response- [ ] **Versioning**: Versioning in API path and Zod schemas for query/body/response+- [ ] **Fern API Docs**: Update `fern/apis/server/definition/` to match TypeScript types- [ ] **Tests**: Add end-to-end test in `__tests__/async/`### New Queue Processor Checklist (Worker)@@ -423,6 +424,32 @@ const traces = await queryClickhouse({});```+### 9. Keep Fern API Definitions in Sync with TypeScript Types++When modifying public API types in `web/src/features/public-api/types/`, the corresponding Fern API definitions in `fern/apis/server/definition/` must be updated to match.++**Zod to Fern Type Mapping:**++| Zod Type | Fern Type | Example |+| -------- | --------- | ------- |+| `.nullish()` | `optional<nullable<T>>` | `z.string().nullish()` → `optional<nullable<string>>` |+| `.nullable()` | `nullable<T>` | `z.string().nullable()` → `nullable<string>` |+| `.optional()` | `optional<T>` | `z.string().optional()` → `optional<string>` |+| Always present | `T` | `z.string()` → `string` |++**Source References:**++Add a comment at the top of each Fern type referencing the TypeScript source file:++```yaml+# Source: web/src/features/public-api/types/traces.ts - APITrace+Trace:+ properties:+ id: string+ name:+ type: nullable<string>+```+---## Common Importsdiff --git a/REVIEW.md b/REVIEW.mdindex eac2868f9b..39e0d33439 100644--- a/REVIEW.md+++ b/REVIEW.md@@ -45,3 +45,10 @@## Seeder- make sure that for new features with data model changes, the database seeder is adjusted.++## API Documentation++- Whenever a file in `web/src/features/public-api/types` changes, the `fern/apis` definition probably needs to be adjusted, too.+- `nullish` types should map to `optional<nullable<T>>` in fern.+- `nullable` types should map to `nullable<T>` in fern.+- `optional` types should map to `optional<T>` in fern.diff --git a/fern/apis/server/definition/commons.yml b/fern/apis/server/definition/commons.ymlindex 2fdcdef75b..f4aa0dd8b7 100644--- a/fern/apis/server/definition/commons.yml+++ b/fern/apis/server/definition/commons.yml@@ -1,5 +1,6 @@types:# Objects+ # Source: web/src/features/public-api/types/traces.ts - APITrace, APIExtendedTrace, GetTraceV1ResponseTrace:properties:id:@@ -9,7 +10,7 @@ types:type: datetimedocs: The timestamp when the trace was createdname:- type: optional<string>+ type: nullable<string>docs: The name of the traceinput:type: optional<unknown>@@ -18,28 +19,28 @@ types:type: optional<unknown>docs: The output data of the trace. Can be any JSON.sessionId:- type: optional<string>+ type: nullable<string>docs: The session identifier associated with the tracerelease:- type: optional<string>+ type: nullable<string>docs: The release version of the application when the trace was createdversion:- type: optional<string>+ type: nullable<string>docs: The version of the traceuserId:- type: optional<string>+ type: nullable<string>docs: The user identifier associated with the tracemetadata:type: optional<unknown>docs: The metadata associated with the trace. Can be any JSON.tags:- type: optional<list<string>>- docs: The tags associated with the trace. Can be an array of strings or null.+ type: list<string>+ docs: The tags associated with the trace.public:- type: optional<boolean>+ type: booleandocs: Public traces are accessible via url without loginenvironment:- type: optional<string>+ type: stringdocs: The environment from which this trace originated. Can be any lowercase alphanumeric string with hyphens and underscores that does not start with 'langfuse'.TraceWithDetails: # GET /tracesextends: Trace@@ -48,16 +49,16 @@ types:type: stringdocs: Path of trace in Langfuse UIlatency:- type: double+ type: optional<nullable<double>>docs: Latency of trace in secondstotalCost:- type: double+ type: optional<nullable<double>>docs: Cost of trace in USDobservations:- type: list<string>+ type: optional<nullable<list<string>>>docs: List of observation idsscores:- type: list<string>+ type: optional<nullable<list<string>>>docs: List of score idsTraceWithFullDetails: # GET traces/[traceID]extends: Trace@@ -66,10 +67,10 @@ types:type: stringdocs: Path of trace in Langfuse UIlatency:- type: double+ type: optional<nullable<double>>docs: Latency of trace in secondstotalCost:- type: double+ type: optional<nullable<double>>docs: Cost of trace in USDobservations:type: list<ObservationsView>@@ -77,119 +78,121 @@ types:scores:type: list<ScoreV1>docs: List of scores+ # Source: web/src/features/public-api/types/sessions.ts - APISessionSession:properties:id: stringcreatedAt: datetimeprojectId: stringenvironment:- type: optional<string>+ type: stringdocs: The environment from which this session originated.SessionWithTraces:extends: Sessionproperties:traces: list<Trace>+ # Source: web/src/features/public-api/types/observations.ts - APIObservationObservation:properties:id:type: stringdocs: The unique identifier of the observationtraceId:- type: optional<string>+ type: nullable<string>docs: The trace ID associated with the observationtype:type: stringdocs: The type of the observationname:- type: optional<string>+ type: nullable<string>docs: The name of the observationstartTime:type: datetimedocs: The start time of the observationendTime:- type: optional<datetime>+ type: nullable<datetime>docs: The end time of the observation.completionStartTime:- type: optional<datetime>+ type: nullable<datetime>docs: The completion start time of the observationmodel:- type: optional<string>+ type: nullable<string>docs: The model used for the observationmodelParameters:- type: optional<map<string, MapValue>>+ type: unknowndocs: The parameters of the model used for the observationinput:- type: optional<unknown>+ type: unknowndocs: The input data of the observationversion:- type: optional<string>+ type: nullable<string>docs: The version of the observationmetadata:- type: optional<unknown>+ type: unknowndocs: Additional metadata of the observationoutput:- type: optional<unknown>+ type: unknowndocs: The output data of the observationusage:- type: optional<Usage>+ type: Usagedocs: (Deprecated. Use usageDetails and costDetails instead.) The usage data of the observationlevel:type: ObservationLeveldocs: The level of the observationstatusMessage:- type: optional<string>+ type: nullable<string>docs: The status message of the observationparentObservationId:- type: optional<string>+ type: nullable<string>docs: The parent observation IDpromptId:- type: optional<string>+ type: nullable<string>docs: The prompt ID associated with the observationusageDetails:- type: optional<map<string, integer>>+ type: map<string, integer>docs: The usage details of the observation. Key is the name of the usage metric, value is the number of units consumed. The total key is the sum of all (non-total) usage metrics or the total value ingested.costDetails:- type: optional<map<string, double>>+ type: map<string, double>docs: The cost details of the observation. Key is the name of the cost metric, value is the cost in USD. The total key is the sum of all (non-total) cost metrics or the total value ingested.environment:- type: optional<string>+ type: stringdocs: The environment from which this observation originated. Can be any lowercase alphanumeric string with hyphens and underscores that does not start with 'langfuse'.ObservationsView:extends: Observationproperties:promptName:- type: optional<string>+ type: nullable<string>docs: The name of the prompt associated with the observationpromptVersion:- type: optional<integer>+ type: nullable<integer>docs: The version of the prompt associated with the observationmodelId:- type: optional<string>+ type: nullable<string>docs: The unique identifier of the modelinputPrice:- type: optional<double>+ type: nullable<double>docs: The price of the input in USDoutputPrice:- type: optional<double>+ type: nullable<double>docs: The price of the output in USD.totalPrice:- type: optional<double>+ type: nullable<double>docs: The total price in USD.calculatedInputCost:- type: optional<double>+ type: nullable<double>docs: (Deprecated. Use usageDetails and costDetails instead.) The calculated cost of the input in USDcalculatedOutputCost:- type: optional<double>+ type: nullable<double>docs: (Deprecated. Use usageDetails and costDetails instead.) The calculated cost of the output in USDcalculatedTotalCost:- type: optional<double>+ type: nullable<double>docs: (Deprecated. Use usageDetails and costDetails instead.) The calculated total cost in USDlatency:- type: optional<double>+ type: nullable<double>docs: The latency in seconds.timeToFirstToken:- type: optional<double>+ type: nullable<double>docs: The time to the first token in secondsUsage:@@ -197,14 +200,16 @@ types:properties:input:docs: Number of input units (e.g. tokens)- type: optional<integer>+ type: integeroutput:docs: Number of output units (e.g. tokens)- type: optional<integer>+ type: integertotal:docs: Defaults to input+output if not set- type: optional<integer>- unit: optional<ModelUsageUnit>+ type: integer+ unit:+ docs: Unit of measurement+ type: nullable<string>inputCost:docs: USD input costtype: optional<double>@@ -214,6 +219,7 @@ types:totalCost:docs: USD total cost, defaults to input+outputtype: optional<double>+ # Source: web/src/features/public-api/types/score-configs.ts - APIScoreConfigScoreConfig:docs: Configuration for a scoreproperties:@@ -227,40 +233,51 @@ types:type: booleandocs: Whether the score config is archived. Defaults to falseminValue:- type: optional<double>+ type: optional<nullable<double>>docs: Sets minimum value for numerical scores. If not set, the minimum value defaults to -∞maxValue:- type: optional<double>+ type: optional<nullable<double>>docs: Sets maximum value for numerical scores. If not set, the maximum value defaults to +∞categories:type: optional<list<ConfigCategory>>docs: Configures custom categories for categorical scores- description: optional<string>+ description:+ type: optional<nullable<string>>+ docs: Description of the score configConfigCategory:properties:value: doublelabel: string+ # Source: packages/shared/src/features/scores/interfaces/api/v1/schemas.ts - APIScoreSchemaV1BaseScoreV1:properties:id: stringtraceId: stringname: stringsource: ScoreSource- observationId: optional<string>+ observationId:+ type: optional<nullable<string>>+ docs: The observation ID associated with the scoretimestamp: datetimecreatedAt: datetimeupdatedAt: datetime- authorUserId: optional<string>- comment: optional<string>- metadata: optional<unknown>+ authorUserId:+ type: nullable<string>+ docs: The user ID of the author+ comment:+ type: nullable<string>+ docs: Comment on the score+ metadata:+ type: unknown+ docs: Metadata associated with the scoreconfigId:- type: optional<string>+ type: nullable<string>docs: Reference a score config on a score. When set, config and score name must be equal and value must comply to optionally defined numerical rangequeueId:- type: optional<string>+ type: nullable<string>docs: The annotation queue referenced by the score. Indicates if score was initially created while processing annotation queue.environment:- type: optional<string>+ type: stringdocs: The environment from which this score originated. Can be any lowercase alphanumeric string with hyphens and underscores that does not start with 'langfuse'.NumericScoreV1:extends: BaseScoreV1@@ -299,29 +316,44 @@ types:type: BooleanScoreV1docs: "Score with BOOLEAN data type"+ # Source: packages/shared/src/features/scores/interfaces/api/v2/schemas.ts - APIScoreSchemaV2BaseScore:properties:id: string- traceId: optional<string>- sessionId: optional<string>- observationId: optional<string>- datasetRunId: optional<string>+ traceId:+ type: optional<nullable<string>>+ docs: The trace ID associated with the score+ sessionId:+ type: optional<nullable<string>>+ docs: The session ID associated with the score+ observationId:+ type: optional<nullable<string>>+ docs: The observation ID associated with the score+ datasetRunId:+ type: optional<nullable<string>>+ docs: The dataset run ID associated with the scorename: stringsource: ScoreSourcetimestamp: datetimecreatedAt: datetimeupdatedAt: datetime- authorUserId: optional<string>- comment: optional<string>- metadata: optional<unknown>+ authorUserId:+ type: nullable<string>+ docs: The user ID of the author+ comment:+ type: nullable<string>+ docs: Comment on the score+ metadata:+ type: unknown+ docs: Metadata associated with the scoreconfigId:- type: optional<string>+ type: nullable<string>docs: Reference a score config on a score. When set, config and score name must be equal and value must comply to optionally defined numerical rangequeueId:- type: optional<string>+ type: nullable<string>docs: The annotation queue referenced by the score. Indicates if score was initially created while processing annotation queue.environment:- type: optional<string>+ type: stringdocs: The environment from which this score originated. Can be any lowercase alphanumeric string with hyphens and underscores that does not start with 'langfuse'.NumericScore:extends: BaseScore@@ -367,6 +399,7 @@ types:- stringdocs: The value of the score. Must be passed as string for categorical scores, and numeric for boolean and numeric scores+ # Source: web/src/features/public-api/types/comments.ts - APICommentComment:properties:id: string@@ -376,36 +409,55 @@ types:objectType: CommentObjectTypeobjectId: stringcontent: string- authorUserId: optional<string>+ authorUserId:+ type: optional<nullable<string>>+ docs: The user ID of the comment author+ # Source: web/src/features/public-api/types/datasets.ts - APIDatasetDataset:properties:id: stringname: string- description: optional<string>- metadata: optional<unknown>+ description:+ type: nullable<string>+ docs: Description of the dataset+ metadata:+ type: unknown+ docs: Metadata associated with the datasetinputSchema:- type: optional<unknown>+ type: nullable<unknown>docs: JSON Schema for validating dataset item inputsexpectedOutputSchema:- type: optional<unknown>+ type: nullable<unknown>docs: JSON Schema for validating dataset item expected outputsprojectId: stringcreatedAt: datetimeupdatedAt: datetime+ # Source: web/src/features/public-api/types/datasets.ts - APIDatasetItemDatasetItem:properties:id: stringstatus: DatasetStatus- input: optional<unknown>- expectedOutput: optional<unknown>- metadata: optional<unknown>- sourceTraceId: optional<string>- sourceObservationId: optional<string>+ input:+ type: unknown+ docs: Input data for the dataset item+ expectedOutput:+ type: unknown+ docs: Expected output for the dataset item+ metadata:+ type: unknown+ docs: Metadata associated with the dataset item+ sourceTraceId:+ type: nullable<string>+ docs: The trace ID that sourced this dataset item+ sourceObservationId:+ type: nullable<string>+ docs: The observation ID that sourced this dataset itemdatasetId: stringdatasetName: stringcreatedAt: datetimeupdatedAt: datetime+ # Source: web/src/features/public-api/types/datasets.ts - APIDatasetRunItemDatasetRunItem:properties:id: string@@ -413,9 +465,12 @@ types:datasetRunName: stringdatasetItemId: stringtraceId: string- observationId: optional<string>+ observationId:+ type: nullable<string>+ docs: The observation ID associated with this run itemcreatedAt: datetimeupdatedAt: datetime+ # Source: web/src/features/public-api/types/datasets.ts - APIDatasetRunDatasetRun:properties:id:@@ -425,10 +480,10 @@ types:type: stringdocs: Name of the dataset rundescription:- type: optional<string>+ type: nullable<string>docs: Description of the runmetadata:- type: optional<unknown>+ type: unknowndocs: Metadata of the dataset rundatasetId:type: string@@ -446,6 +501,7 @@ types:extends: DatasetRunproperties:datasetRunItems: list<DatasetRunItem>+ # Source: web/src/features/public-api/types/models.ts - APIModelDefinitionModel:docs: |Model definition used for transforming usage into USD cost and/or tokenization.@@ -467,25 +523,25 @@ types:type: stringstartDate:docs: Apply only to generations which are newer than this ISO date.- type: optional<datetime>+ type: nullable<datetime>unit:docs: Unit used by this model.- type: optional<ModelUsageUnit>+ type: optional<nullable<ModelUsageUnit>>inputPrice:docs: Deprecated. See 'prices' instead. Price (USD) per input unit- type: optional<double>+ type: nullable<double>outputPrice:docs: Deprecated. See 'prices' instead. Price (USD) per output unit- type: optional<double>+ type: nullable<double>totalPrice:docs: Deprecated. See 'prices' instead. Price (USD) per total unit. Cannot be set if input or output price is set.- type: optional<double>+ type: nullable<double>tokenizerId:docs: Optional. Tokenizer to be applied to observations which match to this model. See docs for more details.- type: optional<string>+ type: nullable<string>tokenizerConfig:docs: Optional. Configuration for the selected tokenizer. Needs to be JSON. See docs for more details.- type: optional<unknown>+ type: unknownisLangfuseManaged:type: booleancreatedAt:diff --git a/web/public/generated/api/openapi.yml b/web/public/generated/api/openapi.ymlindex 1a0ff40910..cc98f640e0 100644--- a/web/public/generated/api/openapi.yml+++ b/web/public/generated/api/openapi.yml@@ -6445,17 +6445,12 @@ components:type: arrayitems:type: string- nullable: true- description: >-- The tags associated with the trace. Can be an array of strings or- null.+ description: The tags associated with the trace.public:type: boolean- nullable: truedescription: Public traces are accessible via url without loginenvironment:type: string- nullable: truedescription: >-The environment from which this trace originated. Can be anylowercase alphanumeric string with hyphens and underscores that does@@ -6463,6 +6458,9 @@ components:required:- id- timestamp+ - tags+ - public+ - environmentTraceWithDetails:title: TraceWithDetailstype: object@@ -6473,27 +6471,27 @@ components:latency:type: numberformat: double+ nullable: truedescription: Latency of trace in secondstotalCost:type: numberformat: double+ nullable: truedescription: Cost of trace in USDobservations:type: arrayitems:type: string+ nullable: truedescription: List of observation idsscores:type: arrayitems:type: string+ nullable: truedescription: List of score idsrequired:- htmlPath- - latency- - totalCost- - observations- - scoresallOf:- $ref: '#/components/schemas/Trace'TraceWithFullDetails:@@ -6506,10 +6504,12 @@ components:latency:type: numberformat: double+ nullable: truedescription: Latency of trace in secondstotalCost:type: numberformat: double+ nullable: truedescription: Cost of trace in USDobservations:type: array@@ -6523,8 +6523,6 @@ components:description: List of scoresrequired:- htmlPath- - latency- - totalCost- observations- scoresallOf:@@ -6542,12 +6540,12 @@ components:type: stringenvironment:type: string- nullable: truedescription: The environment from which this session originated.required:- id- createdAt- projectId+ - environmentSessionWithTraces:title: SessionWithTracestype: object@@ -6597,27 +6595,19 @@ components:nullable: truedescription: The model used for the observationmodelParameters:- type: object- additionalProperties:- $ref: '#/components/schemas/MapValue'- nullable: truedescription: The parameters of the model used for the observationinput:- nullable: truedescription: The input data of the observationversion:type: stringnullable: truedescription: The version of the observationmetadata:- nullable: truedescription: Additional metadata of the observationoutput:- nullable: truedescription: The output data of the observationusage:$ref: '#/components/schemas/Usage'- nullable: truedescription: >-(Deprecated. Use usageDetails and costDetails instead.) The usagedata of the observation@@ -6640,7 +6630,6 @@ components:type: objectadditionalProperties:type: integer- nullable: truedescription: >-The usage details of the observation. Key is the name of the usagemetric, value is the number of units consumed. The total key is the@@ -6650,14 +6639,12 @@ components:additionalProperties:type: numberformat: double- nullable: truedescription: >-The cost details of the observation. Key is the name of the costmetric, value is the cost in USD. The total key is the sum of all(non-total) cost metrics or the total value ingested.environment:type: string- nullable: truedescription: >-The environment from which this observation originated. Can be anylowercase alphanumeric string with hyphens and underscores that does@@ -6666,7 +6653,15 @@ components:- id- type- startTime+ - modelParameters+ - input+ - metadata+ - output+ - usage- level+ - usageDetails+ - costDetails+ - environmentObservationsView:title: ObservationsViewtype: object@@ -6740,19 +6735,17 @@ components:properties:input:type: integer- nullable: truedescription: Number of input units (e.g. tokens)output:type: integer- nullable: truedescription: Number of output units (e.g. tokens)total:type: integer- nullable: truedescription: Defaults to input+output if not setunit:- $ref: '#/components/schemas/ModelUsageUnit'+ type: stringnullable: true+ description: Unit of measurementinputCost:type: numberformat: double@@ -6768,6 +6761,10 @@ components:format: doublenullable: truedescription: USD total cost, defaults to input+output+ required:+ - input+ - output+ - totalScoreConfig:title: ScoreConfigtype: object@@ -6813,6 +6810,7 @@ components:description:type: stringnullable: true+ description: Description of the score configrequired:- id- name@@ -6848,6 +6846,7 @@ components:observationId:type: stringnullable: true+ description: The observation ID associated with the scoretimestamp:type: stringformat: date-time@@ -6860,11 +6859,13 @@ components:authorUserId:type: stringnullable: true+ description: The user ID of the authorcomment:type: stringnullable: true+ description: Comment on the scoremetadata:- nullable: true+ description: Metadata associated with the scoreconfigId:type: stringnullable: true@@ -6880,7 +6881,6 @@ components:initially created while processing annotation queue.environment:type: string- nullable: truedescription: >-The environment from which this score originated. Can be anylowercase alphanumeric string with hyphens and underscores that does@@ -6893,6 +6893,8 @@ components:- timestamp- createdAt- updatedAt+ - metadata+ - environmentNumericScoreV1:title: NumericScoreV1type: object@@ -6990,15 +6992,19 @@ components:traceId:type: stringnullable: true+ description: The trace ID associated with the scoresessionId:type: stringnullable: true+ description: The session ID associated with the scoreobservationId:type: stringnullable: true+ description: The observation ID associated with the scoredatasetRunId:type: stringnullable: true+ description: The dataset run ID associated with the scorename:type: stringsource:@@ -7015,11 +7021,13 @@ components:authorUserId:type: stringnullable: true+ description: The user ID of the authorcomment:type: stringnullable: true+ description: Comment on the scoremetadata:- nullable: true+ description: Metadata associated with the scoreconfigId:type: stringnullable: true@@ -7035,7 +7043,6 @@ components:initially created while processing annotation queue.environment:type: string- nullable: truedescription: >-The environment from which this score originated. Can be anylowercase alphanumeric string with hyphens and underscores that does@@ -7047,6 +7054,8 @@ components:- timestamp- createdAt- updatedAt+ - metadata+ - environmentNumericScore:title: NumericScoretype: object@@ -7167,6 +7176,7 @@ components:authorUserId:type: stringnullable: true+ description: The user ID of the comment authorrequired:- id- projectId@@ -7186,8 +7196,9 @@ components:description:type: stringnullable: true+ description: Description of the datasetmetadata:- nullable: true+ description: Metadata associated with the datasetinputSchema:nullable: truedescription: JSON Schema for validating dataset item inputs@@ -7205,6 +7216,7 @@ components:required:- id- name+ - metadata- projectId- createdAt- updatedAt@@ -7217,17 +7229,19 @@ components:status:$ref: '#/components/schemas/DatasetStatus'input:- nullable: true+ description: Input data for the dataset itemexpectedOutput:- nullable: true+ description: Expected output for the dataset itemmetadata:- nullable: true+ description: Metadata associated with the dataset itemsourceTraceId:type: stringnullable: true+ description: The trace ID that sourced this dataset itemsourceObservationId:type: stringnullable: true+ description: The observation ID that sourced this dataset itemdatasetId:type: stringdatasetName:@@ -7241,6 +7255,9 @@ components:required:- id- status+ - input+ - expectedOutput+ - metadata- datasetId- datasetName- createdAt@@ -7262,6 +7279,7 @@ components:observationId:type: stringnullable: true+ description: The observation ID associated with this run itemcreatedAt:type: stringformat: date-time@@ -7291,7 +7309,6 @@ components:nullable: truedescription: Description of the runmetadata:- nullable: truedescription: Metadata of the dataset rundatasetId:type: string@@ -7310,6 +7327,7 @@ components:required:- id- name+ - metadata- datasetId- datasetName- createdAt@@ -7399,7 +7417,6 @@ components:Optional. Tokenizer to be applied to observations which match tothis model. See docs for more details.tokenizerConfig:- nullable: truedescription: >-Optional. Configuration for the selected tokenizer. Needs to beJSON. See docs for more details.@@ -7452,6 +7469,7 @@ components:- id- modelName- matchPattern+ - tokenizerConfig- isLangfuseManaged- createdAt- prices