Skip to content

Commit 204b361

Browse files
feat(api): api update
1 parent 3abd96c commit 204b361

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

.stats.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 1706
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-b195f55634f5c9a77fe4b6028531bb315e7eb6a946ed2f2ef4a9f03367a9e688.yml
3-
openapi_spec_hash: 5dc0b6788e545012436a0102ad4c66c4
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-1a97957875bffc94f15a56f3a2c04c8c9587bef638bd54190384c581bf2ab8db.yml
3+
openapi_spec_hash: 9473d561903fb7947989456228093312
44
config_hash: 67f412c990647f3cb598378fa22a9db5

tests/api_resources/test_ai.py

+12-12
Original file line numberDiff line numberDiff line change
@@ -447,10 +447,10 @@ def test_method_run_with_all_params_overload_8(self, client: Cloudflare) -> None
447447
model_name="model_name",
448448
account_id="023e105f4ecef8ad9ca31a8372d0c353",
449449
prompt="x",
450-
frequency_penalty=0,
450+
frequency_penalty=-2,
451451
lora="lora",
452452
max_tokens=0,
453-
presence_penalty=0,
453+
presence_penalty=-2,
454454
raw=True,
455455
repetition_penalty=0,
456456
response_format={
@@ -461,7 +461,7 @@ def test_method_run_with_all_params_overload_8(self, client: Cloudflare) -> None
461461
stream=True,
462462
temperature=0,
463463
top_k=1,
464-
top_p=0,
464+
top_p=0.001,
465465
)
466466
assert_matches_type(Optional[AIRunResponse], ai, path=["response"])
467467

@@ -534,15 +534,15 @@ def test_method_run_with_all_params_overload_9(self, client: Cloudflare) -> None
534534
"role": "role",
535535
}
536536
],
537-
frequency_penalty=0,
537+
frequency_penalty=-2,
538538
functions=[
539539
{
540540
"code": "code",
541541
"name": "name",
542542
}
543543
],
544544
max_tokens=0,
545-
presence_penalty=0,
545+
presence_penalty=-2,
546546
raw=True,
547547
repetition_penalty=0,
548548
response_format={
@@ -569,7 +569,7 @@ def test_method_run_with_all_params_overload_9(self, client: Cloudflare) -> None
569569
}
570570
],
571571
top_k=1,
572-
top_p=0,
572+
top_p=0.001,
573573
)
574574
assert_matches_type(Optional[AIRunResponse], ai, path=["response"])
575575

@@ -1459,10 +1459,10 @@ async def test_method_run_with_all_params_overload_8(self, async_client: AsyncCl
14591459
model_name="model_name",
14601460
account_id="023e105f4ecef8ad9ca31a8372d0c353",
14611461
prompt="x",
1462-
frequency_penalty=0,
1462+
frequency_penalty=-2,
14631463
lora="lora",
14641464
max_tokens=0,
1465-
presence_penalty=0,
1465+
presence_penalty=-2,
14661466
raw=True,
14671467
repetition_penalty=0,
14681468
response_format={
@@ -1473,7 +1473,7 @@ async def test_method_run_with_all_params_overload_8(self, async_client: AsyncCl
14731473
stream=True,
14741474
temperature=0,
14751475
top_k=1,
1476-
top_p=0,
1476+
top_p=0.001,
14771477
)
14781478
assert_matches_type(Optional[AIRunResponse], ai, path=["response"])
14791479

@@ -1546,15 +1546,15 @@ async def test_method_run_with_all_params_overload_9(self, async_client: AsyncCl
15461546
"role": "role",
15471547
}
15481548
],
1549-
frequency_penalty=0,
1549+
frequency_penalty=-2,
15501550
functions=[
15511551
{
15521552
"code": "code",
15531553
"name": "name",
15541554
}
15551555
],
15561556
max_tokens=0,
1557-
presence_penalty=0,
1557+
presence_penalty=-2,
15581558
raw=True,
15591559
repetition_penalty=0,
15601560
response_format={
@@ -1581,7 +1581,7 @@ async def test_method_run_with_all_params_overload_9(self, async_client: AsyncCl
15811581
}
15821582
],
15831583
top_k=1,
1584-
top_p=0,
1584+
top_p=0.001,
15851585
)
15861586
assert_matches_type(Optional[AIRunResponse], ai, path=["response"])
15871587

0 commit comments

Comments
 (0)