Skip to content

Commit 6b2fe76

Browse files
SDK regeneration (#53)
Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com>
1 parent 0e3499c commit 6b2fe76

File tree

7 files changed

+14
-15
lines changed

7 files changed

+14
-15
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "credal"
33

44
[tool.poetry]
55
name = "credal"
6-
version = "0.1.5"
6+
version = "0.1.6"
77
description = ""
88
readme = "README.md"
99
authors = []

reference.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -938,7 +938,7 @@ client.document_catalog.upload_document_contents(
938938
<dl>
939939
<dd>
940940

941-
**collection_id:** `typing.Optional[str]` — If specified, the document will also be added to the provided document collection. The document does not immediately start appearing in searches of that collection due to an asynchronous embedding process. To await this process and have this endpoint return only when that embedding process is complete, use the `awaitVectorStoreSync` parameter.
941+
**collection_id:** `typing.Optional[str]` — If specified, the document will also be added to the provided document collection. This operation is eventually consistent, meaning the document does not immediately start appearing in searches of that collection due to an asynchronous embedding process. To achieve strong consistency use the `awaitVectorStoreSync` parameter.
942942

943943
</dd>
944944
</dl>
@@ -962,7 +962,7 @@ client.document_catalog.upload_document_contents(
962962
<dl>
963963
<dd>
964964

965-
**await_vector_store_sync:** `typing.Optional[bool]` — If specified, the API will wait for the vector store to be updated before returning. This is useful if you want to ensure that the document is immediately searchable after this call returns.
965+
**await_vector_store_sync:** `typing.Optional[bool]`Document uploads are eventually consistent by default. If specified `true` the API will wait for the vector store to be updated before returning. This is useful if you want to ensure that the document is immediately searchable after this call returns.
966966

967967
</dd>
968968
</dl>

src/credal/core/client_wrapper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ def __init__(
2222

2323
def get_headers(self) -> typing.Dict[str, str]:
2424
headers: typing.Dict[str, str] = {
25-
"User-Agent": "credal/0.1.5",
25+
"User-Agent": "credal/0.1.6",
2626
"X-Fern-Language": "Python",
2727
"X-Fern-SDK-Name": "credal",
28-
"X-Fern-SDK-Version": "0.1.5",
28+
"X-Fern-SDK-Version": "0.1.6",
2929
**(self.get_custom_headers() or {}),
3030
}
3131
headers["Authorization"] = f"Bearer {self._get_api_key()}"

src/credal/core/pydantic_utilities.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class UniversalBaseModel(pydantic.BaseModel):
6161

6262
@pydantic.model_serializer(mode="plain", when_used="json") # type: ignore[attr-defined]
6363
def serialize_model(self) -> Any: # type: ignore[name-defined]
64-
serialized = self.model_dump() # type: ignore[attr-defined]
64+
serialized = self.dict() # type: ignore[attr-defined]
6565
data = {k: serialize_datetime(v) if isinstance(v, dt.datetime) else v for k, v in serialized.items()}
6666
return data
6767

src/credal/document_catalog/client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def upload_document_contents(
7070
Optional JSON representing any custom metadata for this document
7171
7272
collection_id : typing.Optional[str]
73-
If specified, the document will also be added to the provided document collection. The document does not immediately start appearing in searches of that collection due to an asynchronous embedding process. To await this process and have this endpoint return only when that embedding process is complete, use the `awaitVectorStoreSync` parameter.
73+
If specified, the document will also be added to the provided document collection. This operation is eventually consistent, meaning the document does not immediately start appearing in searches of that collection due to an asynchronous embedding process. To achieve strong consistency use the `awaitVectorStoreSync` parameter.
7474
7575
force_update : typing.Optional[bool]
7676
If specified, document contents will be re-uploaded and re-embedded even if the document already exists in Credal
@@ -79,7 +79,7 @@ def upload_document_contents(
7979
If specified, document will be accessible to everyone within the organization of the uploader
8080
8181
await_vector_store_sync : typing.Optional[bool]
82-
If specified, the API will wait for the vector store to be updated before returning. This is useful if you want to ensure that the document is immediately searchable after this call returns.
82+
Document uploads are eventually consistent by default. If specified `true` the API will wait for the vector store to be updated before returning. This is useful if you want to ensure that the document is immediately searchable after this call returns.
8383
8484
request_options : typing.Optional[RequestOptions]
8585
Request-specific configuration.
@@ -269,7 +269,7 @@ async def upload_document_contents(
269269
Optional JSON representing any custom metadata for this document
270270
271271
collection_id : typing.Optional[str]
272-
If specified, the document will also be added to the provided document collection. The document does not immediately start appearing in searches of that collection due to an asynchronous embedding process. To await this process and have this endpoint return only when that embedding process is complete, use the `awaitVectorStoreSync` parameter.
272+
If specified, the document will also be added to the provided document collection. This operation is eventually consistent, meaning the document does not immediately start appearing in searches of that collection due to an asynchronous embedding process. To achieve strong consistency use the `awaitVectorStoreSync` parameter.
273273
274274
force_update : typing.Optional[bool]
275275
If specified, document contents will be re-uploaded and re-embedded even if the document already exists in Credal
@@ -278,7 +278,7 @@ async def upload_document_contents(
278278
If specified, document will be accessible to everyone within the organization of the uploader
279279
280280
await_vector_store_sync : typing.Optional[bool]
281-
If specified, the API will wait for the vector store to be updated before returning. This is useful if you want to ensure that the document is immediately searchable after this call returns.
281+
Document uploads are eventually consistent by default. If specified `true` the API will wait for the vector store to be updated before returning. This is useful if you want to ensure that the document is immediately searchable after this call returns.
282282
283283
request_options : typing.Optional[RequestOptions]
284284
Request-specific configuration.

src/credal/document_catalog/raw_client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def upload_document_contents(
6363
Optional JSON representing any custom metadata for this document
6464
6565
collection_id : typing.Optional[str]
66-
If specified, the document will also be added to the provided document collection. The document does not immediately start appearing in searches of that collection due to an asynchronous embedding process. To await this process and have this endpoint return only when that embedding process is complete, use the `awaitVectorStoreSync` parameter.
66+
If specified, the document will also be added to the provided document collection. This operation is eventually consistent, meaning the document does not immediately start appearing in searches of that collection due to an asynchronous embedding process. To achieve strong consistency use the `awaitVectorStoreSync` parameter.
6767
6868
force_update : typing.Optional[bool]
6969
If specified, document contents will be re-uploaded and re-embedded even if the document already exists in Credal
@@ -72,7 +72,7 @@ def upload_document_contents(
7272
If specified, document will be accessible to everyone within the organization of the uploader
7373
7474
await_vector_store_sync : typing.Optional[bool]
75-
If specified, the API will wait for the vector store to be updated before returning. This is useful if you want to ensure that the document is immediately searchable after this call returns.
75+
Document uploads are eventually consistent by default. If specified `true` the API will wait for the vector store to be updated before returning. This is useful if you want to ensure that the document is immediately searchable after this call returns.
7676
7777
request_options : typing.Optional[RequestOptions]
7878
Request-specific configuration.
@@ -250,7 +250,7 @@ async def upload_document_contents(
250250
Optional JSON representing any custom metadata for this document
251251
252252
collection_id : typing.Optional[str]
253-
If specified, the document will also be added to the provided document collection. The document does not immediately start appearing in searches of that collection due to an asynchronous embedding process. To await this process and have this endpoint return only when that embedding process is complete, use the `awaitVectorStoreSync` parameter.
253+
If specified, the document will also be added to the provided document collection. This operation is eventually consistent, meaning the document does not immediately start appearing in searches of that collection due to an asynchronous embedding process. To achieve strong consistency use the `awaitVectorStoreSync` parameter.
254254
255255
force_update : typing.Optional[bool]
256256
If specified, document contents will be re-uploaded and re-embedded even if the document already exists in Credal
@@ -259,7 +259,7 @@ async def upload_document_contents(
259259
If specified, document will be accessible to everyone within the organization of the uploader
260260
261261
await_vector_store_sync : typing.Optional[bool]
262-
If specified, the API will wait for the vector store to be updated before returning. This is useful if you want to ensure that the document is immediately searchable after this call returns.
262+
Document uploads are eventually consistent by default. If specified `true` the API will wait for the vector store to be updated before returning. This is useful if you want to ensure that the document is immediately searchable after this call returns.
263263
264264
request_options : typing.Optional[RequestOptions]
265265
Request-specific configuration.

tests/utils/test_query_encoding.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# This file was auto-generated by Fern from our API Definition.
22

3-
43
from credal.core.query_encoder import encode_query
54

65

0 commit comments

Comments
 (0)