Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

fix(openapi): upgrade openapi spec generator to correctly specify /ingestion 207 status code (#5217)

Marc Klingenfe089e15f296
diff --git a/fern/apis/client/generators.yml b/fern/apis/client/generators.yml
index 5928eb93d3..519a8099c9 100644
--- a/fern/apis/client/generators.yml
+++ b/fern/apis/client/generators.yml
@@ -12,7 +12,7 @@ groups:
# namespaceExport: Langfuse
# allowCustomFetcher: true
- name: fernapi/fern-openapi
- version: 0.0.26
+ version: 0.1.7
output:
location: local-file-system
path: ../../../web/public/generated/api-client
diff --git a/fern/apis/server/definition/ingestion.yml b/fern/apis/server/definition/ingestion.yml
index 03121e2342..a8db90b871 100644
--- a/fern/apis/server/definition/ingestion.yml
+++ b/fern/apis/server/definition/ingestion.yml
@@ -128,7 +128,7 @@ types:
modelParameters: optional<map<string, commons.MapValue>>
usage: optional<IngestionUsage>
usageDetails: optional<UsageDetails>
- costDetails: optional<map<string, float>>
+ costDetails: optional<map<string, double>>
promptName: optional<string>
promptVersion: optional<integer>
@@ -141,7 +141,7 @@ types:
usage: optional<IngestionUsage>
promptName: optional<string>
usageDetails: optional<UsageDetails>
- costDetails: optional<map<string, float>>
+ costDetails: optional<map<string, double>>
promptVersion: optional<integer>
ObservationBody:
diff --git a/fern/apis/server/definition/score.yml b/fern/apis/server/definition/score.yml
index d9173cbb07..4f6828a2a6 100644
--- a/fern/apis/server/definition/score.yml
+++ b/fern/apis/server/definition/score.yml
@@ -59,7 +59,7 @@ service:
type: optional<commons.ScoreDataType>
docs: Retrieve only scores with a specific dataType.
traceTags:
- type: optional<list<string>>
+ type: optional<string>
allow-multiple: true
docs: Only scores linked to traces that include all of these tags will be returned.
response: GetScoresResponse
diff --git a/fern/apis/server/generators.yml b/fern/apis/server/generators.yml
index ea33d9db80..82f3734e2f 100644
--- a/fern/apis/server/generators.yml
+++ b/fern/apis/server/generators.yml
@@ -3,7 +3,7 @@ groups:
local:
generators:
- name: fernapi/fern-openapi
- version: 0.0.31
+ version: 0.1.7
output:
location: local-file-system
path: ../../../web/public/generated/api
diff --git a/web/public/generated/api-client/openapi.yml b/web/public/generated/api-client/openapi.yml
index defdb8f487..bc476c7830 100644
--- a/web/public/generated/api-client/openapi.yml
+++ b/web/public/generated/api-client/openapi.yml
@@ -53,6 +53,7 @@ components:
properties:
id:
type: string
+ nullable: true
traceId:
type: string
example: cdef-1234-5678-90ab
@@ -67,15 +68,19 @@ components:
values must equal either 1 or 0 (true or false)
observationId:
type: string
+ nullable: true
comment:
type: string
+ nullable: true
dataType:
$ref: '#/components/schemas/ScoreDataType'
+ nullable: true
description: >-
When set, must match the score value's type. If not set, will be
inferred from the score value or config
configId:
type: string
+ nullable: true
description: >-
Reference a score config on a score. When set, the score name must
equal the config name and scores must comply with the config's range
@@ -100,6 +105,7 @@ components:
$ref: '#/components/schemas/ScoreSource'
observationId:
type: string
+ nullable: true
timestamp:
type: string
format: date-time
@@ -111,10 +117,13 @@ components:
format: date-time
authorUserId:
type: string
+ nullable: true
comment:
type: string
+ nullable: true
configId:
type: string
+ nullable: true
description: >-
Reference a score config on a score. When set, config and score name
must be equal and value must comply to optionally defined numerical
@@ -166,6 +175,7 @@ components:
value:
type: number
format: double
+ nullable: true
description: >-
Only defined if a config is linked. Represents the numeric category
mapping of the stringValue
diff --git a/web/public/generated/api/openapi.yml b/web/public/generated/api/openapi.yml
index bb6c7fad2a..4d77789d0a 100644
--- a/web/public/generated/api/openapi.yml
+++ b/web/public/generated/api/openapi.yml
@@ -737,7 +737,7 @@ paths:
- Ingestion
parameters: []
responses:
- '200':
+ '207':
description: ''
content:
application/json: