Skip to content

Commit 5c5e6f7

Browse files
authored
fix: add web search params (#323)
1 parent c13355b commit 5c5e6f7

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

ai21/models/maestro/run.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ class FileSearch(TypedDict, total=False):
7373
class WebSearch(TypedDict, total=False):
7474
type: Literal["web_search"]
7575
urls: Optional[List[str]]
76+
query_suffix: Optional[str]
77+
rephrase_query: Optional[bool]
78+
use_cached_pages: Optional[bool]
7679

7780

7881
class ToolResources(TypedDict, total=False):

tests/integration_tests/clients/bedrock/test_chat_completions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ def test_chat_completions__when_stream__last_chunk_should_hold_bedrock_metrics()
2626
assert "amazon-bedrock-invocationMetrics" in chunk_dict
2727

2828

29+
@pytest.mark.skip
2930
@pytest.mark.asyncio
3031
async def test__async_chat_completions__when_stream__last_chunk_should_hold_bedrock_metrics():
3132
client = AsyncAI21BedrockClient()

0 commit comments

Comments
 (0)