Skip to content

Commit 8a89f96

Browse files
committed
chore: remove redundant content-type headers from raw clients
Remove explicitly set `"content-type": "application/json"` headers from multiple raw client request calls across the SDK. These headers are already handled by the underlying HTTP client when a JSON body is present, making the explicit declarations redundant. Key changes: - Remove hardcoded `content-type: application/json` headers from `RawAssistantsClient` and `AsyncRawAssistantsClient` - Remove same redundant headers from `RawEvalClient`, `RawInsightClient`, `RawObservabilityScorecardClient`, `RawPhoneNumbersClient`, `RawSquadsClient`, `RawStructuredOutputsClient`, and `RawToolsClient` - Applies to both sync and async variants of all affected clients 🌿 Generated with Fern
1 parent 72303d1 commit 8a89f96

13 files changed

Lines changed: 262 additions & 329 deletions

File tree

.fern/metadata.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"cliVersion": "4.86.2",
2+
"cliVersion": "5.34.0",
33
"generatorName": "fernapi/fern-python-sdk",
44
"generatorVersion": "5.3.3",
55
"generatorConfig": {
@@ -8,6 +8,6 @@
88
},
99
"client_class_name": "Vapi"
1010
},
11-
"originGitCommit": "7dc5137b61f1c65ebff4ce5d2fb11de2d945a1cf",
12-
"sdkVersion": "1.11.0"
11+
"originGitCommit": "606828954cea5da28472fd0601dd9c502f40aea9",
12+
"sdkVersion": "1.11.1"
1313
}

changelog.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
## 1.11.1 - 2026-05-20
2+
* chore: remove redundant content-type headers from raw clients
3+
* Remove explicitly set `"content-type": "application/json"` headers from
4+
* multiple raw client request calls across the SDK. These headers are
5+
* already handled by the underlying HTTP client when a JSON body is
6+
* present, making the explicit declarations redundant.
7+
* Key changes:
8+
* Remove hardcoded `content-type: application/json` headers from `RawAssistantsClient` and `AsyncRawAssistantsClient`
9+
* Remove same redundant headers from `RawEvalClient`, `RawInsightClient`, `RawObservabilityScorecardClient`, `RawPhoneNumbersClient`, `RawSquadsClient`, `RawStructuredOutputsClient`, and `RawToolsClient`
10+
* Applies to both sync and async variants of all affected clients
11+
* 🌿 Generated with Fern
12+
113
## 1.11.0 - 2026-04-22
214
### Added
315
* **`Call.subscription_limits`** — new optional field that exposes the org's `SubscriptionLimits` (including concurrency limit information) at the time of a call.

poetry.lock

Lines changed: 244 additions & 269 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ dynamic = ["version"]
44

55
[tool.poetry]
66
name = "vapi_server_sdk"
7-
version = "1.11.0"
7+
version = "1.11.1"
88
description = ""
99
readme = "README.md"
1010
authors = []

src/vapi/assistants/raw_client.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -411,9 +411,6 @@ def create(
411411
object_=keypad_input_plan, annotation=KeypadInputPlan, direction="write"
412412
),
413413
},
414-
headers={
415-
"content-type": "application/json",
416-
},
417414
request_options=request_options,
418415
omit=OMIT,
419416
)
@@ -1170,9 +1167,6 @@ async def create(
11701167
object_=keypad_input_plan, annotation=KeypadInputPlan, direction="write"
11711168
),
11721169
},
1173-
headers={
1174-
"content-type": "application/json",
1175-
},
11761170
request_options=request_options,
11771171
omit=OMIT,
11781172
)

src/vapi/core/client_wrapper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ def get_headers(self) -> typing.Dict[str, str]:
2727
import platform
2828

2929
headers: typing.Dict[str, str] = {
30-
"User-Agent": "vapi_server_sdk/1.11.0",
30+
"User-Agent": "vapi_server_sdk/1.11.1",
3131
"X-Fern-Language": "Python",
3232
"X-Fern-Runtime": f"python/{platform.python_version()}",
3333
"X-Fern-Platform": f"{platform.system().lower()}/{platform.release()}",
3434
"X-Fern-SDK-Name": "vapi_server_sdk",
35-
"X-Fern-SDK-Version": "1.11.0",
35+
"X-Fern-SDK-Version": "1.11.1",
3636
**(self.get_custom_headers() or {}),
3737
}
3838
headers["Authorization"] = f"Bearer {self._get_token()}"

src/vapi/eval/raw_client.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,6 @@ def eval_controller_create(
187187
"description": description,
188188
"type": type,
189189
},
190-
headers={
191-
"content-type": "application/json",
192-
},
193190
request_options=request_options,
194191
omit=OMIT,
195192
)
@@ -778,9 +775,6 @@ async def eval_controller_create(
778775
"description": description,
779776
"type": type,
780777
},
781-
headers={
782-
"content-type": "application/json",
783-
},
784778
request_options=request_options,
785779
omit=OMIT,
786780
)

src/vapi/insight/raw_client.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,6 @@ def insight_controller_create(
158158
json=convert_and_respect_annotation_metadata(
159159
object_=request, annotation=InsightControllerCreateRequest, direction="write"
160160
),
161-
headers={
162-
"content-type": "application/json",
163-
},
164161
request_options=request_options,
165162
omit=OMIT,
166163
)
@@ -406,9 +403,6 @@ def insight_controller_preview(
406403
json=convert_and_respect_annotation_metadata(
407404
object_=request, annotation=InsightControllerPreviewRequest, direction="write"
408405
),
409-
headers={
410-
"content-type": "application/json",
411-
},
412406
request_options=request_options,
413407
omit=OMIT,
414408
)
@@ -559,9 +553,6 @@ async def insight_controller_create(
559553
json=convert_and_respect_annotation_metadata(
560554
object_=request, annotation=InsightControllerCreateRequest, direction="write"
561555
),
562-
headers={
563-
"content-type": "application/json",
564-
},
565556
request_options=request_options,
566557
omit=OMIT,
567558
)
@@ -807,9 +798,6 @@ async def insight_controller_preview(
807798
json=convert_and_respect_annotation_metadata(
808799
object_=request, annotation=InsightControllerPreviewRequest, direction="write"
809800
),
810-
headers={
811-
"content-type": "application/json",
812-
},
813801
request_options=request_options,
814802
omit=OMIT,
815803
)

src/vapi/observability_scorecard/raw_client.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -326,9 +326,6 @@ def scorecard_controller_create(
326326
),
327327
"assistantIds": assistant_ids,
328328
},
329-
headers={
330-
"content-type": "application/json",
331-
},
332329
request_options=request_options,
333330
omit=OMIT,
334331
)
@@ -655,9 +652,6 @@ async def scorecard_controller_create(
655652
),
656653
"assistantIds": assistant_ids,
657654
},
658-
headers={
659-
"content-type": "application/json",
660-
},
661655
request_options=request_options,
662656
omit=OMIT,
663657
)

src/vapi/phone_numbers/raw_client.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,6 @@ def create(
143143
json=convert_and_respect_annotation_metadata(
144144
object_=request, annotation=CreatePhoneNumbersRequest, direction="write"
145145
),
146-
headers={
147-
"content-type": "application/json",
148-
},
149146
request_options=request_options,
150147
omit=OMIT,
151148
)
@@ -517,9 +514,6 @@ async def create(
517514
json=convert_and_respect_annotation_metadata(
518515
object_=request, annotation=CreatePhoneNumbersRequest, direction="write"
519516
),
520-
headers={
521-
"content-type": "application/json",
522-
},
523517
request_options=request_options,
524518
omit=OMIT,
525519
)

0 commit comments

Comments
 (0)