vellum-ai 0.8.4__py3-none-any.whl → 0.8.5__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
@@ -17,7 +17,7 @@ class BaseClientWrapper:
17
17
  headers: typing.Dict[str, str] = {
18
18
  "X-Fern-Language": "Python",
19
19
  "X-Fern-SDK-Name": "vellum-ai",
20
- "X-Fern-SDK-Version": "0.8.4",
20
+ "X-Fern-SDK-Version": "0.8.5",
21
21
  }
22
22
  headers["X_API_KEY"] = self.api_key
23
23
  return headers
@@ -1,28 +1,15 @@
1
1
  # This file was auto-generated by Fern from our API Definition.
2
2
 
3
- import datetime as dt
4
3
  import typing
5
4
 
6
- from ..core.datetime_utils import serialize_datetime
7
- from .generate_result import GenerateResult
5
+ from vellum.core.pydantic_utilities import UniversalBaseModel
8
6
 
9
- try:
10
- import pydantic.v1 as pydantic # type: ignore
11
- except ImportError:
12
- import pydantic # type: ignore
7
+ from .generate_result import GenerateResult
13
8
 
14
9
 
15
- class GenerateResponse(pydantic.BaseModel):
10
+ class GenerateResponse(UniversalBaseModel):
16
11
  results: typing.List[GenerateResult]
17
12
 
18
- def json(self, **kwargs: typing.Any) -> str:
19
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
20
- return super().json(**kwargs_with_defaults)
21
-
22
- def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
23
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
24
- return super().dict(**kwargs_with_defaults)
25
-
26
13
  @property
27
14
  def texts(self) -> typing.List[str]:
28
15
  return [
@@ -36,7 +23,3 @@ class GenerateResponse(pydantic.BaseModel):
36
23
  if len(self.texts) != 1:
37
24
  raise ValueError(f"Expected exactly one completion, but got {len(self.texts)}")
38
25
  return self.texts[0]
39
-
40
- class Config:
41
- frozen = True
42
- json_encoders = {dt.datetime: serialize_datetime}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: vellum-ai
3
- Version: 0.8.4
3
+ Version: 0.8.5
4
4
  Summary:
5
5
  License: MIT
6
6
  Requires-Python: >=3.8,<4.0
@@ -2,7 +2,7 @@ vellum/__init__.py,sha256=uUCRgUb2RUXgf3Ne77-PUoxLFEvCnUAfJe4sD109n_s,30964
2
2
  vellum/client.py,sha256=csB7aUyNO38YpYhFDCbW1Bcgeicw177_2P4TH9Wm5kU,99529
3
3
  vellum/core/__init__.py,sha256=FzSvKbXjuM18Hdk3iGK-jsGY_DfouyRS659thZV5c1Y,1394
4
4
  vellum/core/api_error.py,sha256=RE8LELok2QCjABadECTvtDp7qejA1VmINCh6TbqPwSE,426
5
- vellum/core/client_wrapper.py,sha256=LVRMfe2T5jrttw7HDChRran_dDq52b3h3xd65uSsh5E,1897
5
+ vellum/core/client_wrapper.py,sha256=IlctGuPbsVjpbInoR9G_WRZwNXdXI_k2I2CDiSN9c1k,1897
6
6
  vellum/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
7
7
  vellum/core/file.py,sha256=vliNmlB7PbDfi4EKiVPNq5QaGXJ4zlDBGupv7Qciy7g,1520
8
8
  vellum/core/http_client.py,sha256=rZSidd9LazCjduvdBhZ7GDs4iGfn-OAfRGsDXB1z8f4,18882
@@ -159,7 +159,7 @@ vellum/types/function_call_vellum_value.py,sha256=lLJb-S_-S_UXm6una1BMyCbqLpMhbb
159
159
  vellum/types/function_call_vellum_value_request.py,sha256=oUteuCfWcj7UJbSE_Vywmmva9kyTaeL9iv5WJHabDVs,788
160
160
  vellum/types/generate_options_request.py,sha256=TUDqsH0tiPWDZH4T-p5gsvKvwVHEVZ_k6oI3qsjlsk4,782
161
161
  vellum/types/generate_request.py,sha256=gL6ywAJe6YCJ5oKbtYwL2H_TMdC_6PJZAI7-P3UOF3I,1286
162
- vellum/types/generate_response.py,sha256=DQNreImNi2knMgzvt4q-VPitdhS6cxj_xCoUYtAaOIs,1342
162
+ vellum/types/generate_response.py,sha256=QJmSRsYhZhtDmk2xpE9ueQEkHyXmYsaEQqqlKl9-bS4,699
163
163
  vellum/types/generate_result.py,sha256=gh3cLPIFv2Jx4ZLx4ZY7s1iOzAjoA0Saj7cXMdp4v-A,1094
164
164
  vellum/types/generate_result_data.py,sha256=iYqsDb1Bz38mxocZK1_caBYSpGfRklEDukQd1k3bSOI,790
165
165
  vellum/types/generate_result_error.py,sha256=GRk7lWoWxbPi-ikLRNZ9BnhXutTUdHfBAmlkIAABz7U,652
@@ -501,7 +501,7 @@ vellum/types/workflow_result_event_output_data_search_results.py,sha256=U34IK7Zv
501
501
  vellum/types/workflow_result_event_output_data_string.py,sha256=tM3kgh6tEhD0dFEb_7UU0-UspeN4pUdINCcCrD64W74,1228
502
502
  vellum/types/workflow_stream_event.py,sha256=Wn3Yzuy9MqWAeo8tEaXDTKDEbJoA8DdYdMVq8EKuhu8,361
503
503
  vellum/version.py,sha256=jq-1PlAYxN9AXuaZqbYk9ak27SgE2lw9Ia5gx1b1gVI,76
504
- vellum_ai-0.8.4.dist-info/LICENSE,sha256=CcaljEIoOBaU-wItPH4PmM_mDCGpyuUY0Er1BGu5Ti8,1073
505
- vellum_ai-0.8.4.dist-info/METADATA,sha256=MyWBZxg5ah4AVM7zxPYlMwtguMwW4DFwfI2rbLwO_oM,4394
506
- vellum_ai-0.8.4.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
507
- vellum_ai-0.8.4.dist-info/RECORD,,
504
+ vellum_ai-0.8.5.dist-info/LICENSE,sha256=CcaljEIoOBaU-wItPH4PmM_mDCGpyuUY0Er1BGu5Ti8,1073
505
+ vellum_ai-0.8.5.dist-info/METADATA,sha256=60EUSiKzOrrEArtTjuronXjaknlPxOz5pb6k2kj4DmA,4394
506
+ vellum_ai-0.8.5.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
507
+ vellum_ai-0.8.5.dist-info/RECORD,,