fix: Query default values can't be set in Annotated

The error is that Query default values can't be set in Annotated; they
must be set with = in the function signature.
See the error:

```
The error is that Query default values can't be set in Annotated; they
must be set with = in the function signature. Searching for where
include_embeddings is defined:
```

Signed-off-by: Sébastien Han <seb@redhat.com>
This commit is contained in:
Sébastien Han 2025-11-13 09:29:13 +01:00
parent 221f28b685
commit 09280301de
No known key found for this signature in database
6 changed files with 3126 additions and 15140 deletions

View file

@ -5326,6 +5326,23 @@ components:
text:
type: string
title: Text
embedding:
anyOf:
- items:
type: number
type: array
- type: 'null'
chunk_metadata:
anyOf:
- $ref: '#/components/schemas/ChunkMetadata'
title: ChunkMetadata
- type: 'null'
title: ChunkMetadata
metadata:
anyOf:
- additionalProperties: true
type: object
- type: 'null'
type: object
required:
- type
@ -5402,6 +5419,7 @@ components:
has_more:
type: boolean
title: Has More
default: false
next_page:
anyOf:
- type: string
@ -5409,7 +5427,6 @@ components:
type: object
required:
- data
- has_more
title: VectorStoreFileContentResponse
description: Represents the parsed content of a vector store file.
VectorStoreFileCounts:
@ -5669,7 +5686,7 @@ components:
- file_counts
title: VectorStoreObject
description: OpenAI Vector Store object.
VectorStoreSearchResponse:
VectorStoreSearchResponse-Output:
properties:
file_id:
type: string
@ -5716,7 +5733,7 @@ components:
title: Search Query
data:
items:
$ref: '#/components/schemas/VectorStoreSearchResponse'
$ref: '#/components/schemas/VectorStoreSearchResponse-Output'
type: array
title: Data
has_more:
@ -8957,6 +8974,41 @@ components:
- query
title: VectorStoreSearchRequest
type: object
VectorStoreSearchResponse:
description: Response from searching a vector store.
properties:
file_id:
title: File Id
type: string
filename:
title: Filename
type: string
score:
title: Score
type: number
attributes:
anyOf:
- additionalProperties:
anyOf:
- type: string
- type: number
- type: boolean
title: string | number | boolean
type: object
- type: 'null'
nullable: true
content:
items:
$ref: '#/components/schemas/VectorStoreContent'
title: Content
type: array
required:
- file_id
- filename
- score
- content
title: VectorStoreSearchResponse
type: object
responses:
BadRequest400:
description: The request was invalid or malformed