Skip to content
Merged
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
2 changes: 1 addition & 1 deletion examples/bedrock/async_completion.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ async def main():
temperature=0,
top_p=1,
top_k_return=0,
model=BedrockModelID.J2_MID_V1,
model=BedrockModelID.J2_ULTRA_V1,
)

print(response.completions[0].data.text)
Expand Down
2 changes: 1 addition & 1 deletion examples/bedrock/completion.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
)

response = AI21BedrockClient().completion.create(
prompt=prompt, max_tokens=50, temperature=0, top_p=1, top_k_return=0, model=BedrockModelID.J2_MID_V1
prompt=prompt, max_tokens=50, temperature=0, top_p=1, top_k_return=0, model=BedrockModelID.J2_ULTRA_V1
)

print(response.completions[0].data.text)
Expand Down
49 changes: 4 additions & 45 deletions poetry.lock

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

1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ packages = [
python = "^3.8"
ai21-tokenizer = ">=0.11.0,<1.0.0"
boto3 = { version = "^1.28.82", optional = true }
dataclasses-json = "^0.6.3"
typing-extensions = "^4.9.0"
httpx = "^0.27.0"
tenacity = "^8.3.0"
Expand Down
4 changes: 2 additions & 2 deletions tests/integration_tests/clients/bedrock/test_completion.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def test_completion_penalties__should_return_response(
completion_args = dict(
prompt=_PROMPT,
max_tokens=64,
model_id=BedrockModelID.J2_MID_V1,
model_id=BedrockModelID.J2_ULTRA_V1,
temperature=0,
top_p=1,
top_k_return=0,
Expand Down Expand Up @@ -111,7 +111,7 @@ async def test_async_completion_penalties__should_return_response(
completion_args = dict(
prompt=_PROMPT,
max_tokens=64,
model_id=BedrockModelID.J2_MID_V1,
model_id=BedrockModelID.J2_ULTRA_V1,
temperature=0,
top_p=1,
top_k_return=0,
Expand Down