Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ee/codegen/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ee/codegen/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vellum-ai/vellum-codegen",
"version": "1.11.13",
"version": "1.11.14",
"main": "lib/src/index.js",
"typings": "lib/src/index.d.ts",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "vellum-ai"

[tool.poetry]
name = "vellum-ai"
version = "1.11.13"
version = "1.11.14"
description = ""
readme = "README.md"
authors = []
Expand Down
2 changes: 1 addition & 1 deletion src/vellum/client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ from vellum import Vellum
client = Vellum(
...,
httpx_client=httpx.Client(
proxies="http://my.test.proxy.example.com",
proxy="http://my.test.proxy.example.com",
transport=httpx.HTTPTransport(local_address="0.0.0.0"),
),
)
Expand Down
6 changes: 4 additions & 2 deletions src/vellum/client/core/force_multipart.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
# This file was auto-generated by Fern from our API Definition.

from typing import Any, Dict

class ForceMultipartDict(dict):

class ForceMultipartDict(Dict[str, Any]):
"""
A dictionary subclass that always evaluates to True in boolean contexts.

This is used to force multipart/form-data encoding in HTTP requests even when
the dictionary is empty, which would normally evaluate to False.
"""

def __bool__(self):
def __bool__(self) -> bool:
return True


Expand Down
2 changes: 1 addition & 1 deletion src/vellum/client/core/http_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

import httpx

# Generic to represent the underlying type of the data wrapped by the HTTP response.
T = TypeVar("T")
"""Generic to represent the underlying type of the data wrapped by the HTTP response."""


class BaseHttpResponse:
Expand Down
11 changes: 7 additions & 4 deletions src/vellum/client/core/pydantic_utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class UniversalBaseModel(pydantic.BaseModel):

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

Expand Down Expand Up @@ -162,10 +162,13 @@ def dict(self, **kwargs: Any) -> Dict[str, Any]:
# This optimization dramatically improves serialization performance for large nested
# structures by avoiding repeated typing.get_origin checks on every element.
if self.__class__.__name__ in annotated_types:
return convert_and_respect_annotation_metadata(
object_=dict_dump, annotation=self.__class__, direction="write"
return cast(
Dict[str, Any],
convert_and_respect_annotation_metadata(
object_=dict_dump, annotation=self.__class__, direction="write"
),
)
return dict_dump
return cast(Dict[str, Any], dict_dump)


def _union_list_of_pydantic_dicts(source: List[Any], destination: List[Any]) -> List[Any]:
Expand Down
1 change: 0 additions & 1 deletion tests/client/utils/test_query_encoding.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# This file was auto-generated by Fern from our API Definition.


from vellum.client.core.query_encoder import encode_query


Expand Down