Skip to content

Commit

Permalink
Record converse cassettes against us-east-1
Browse files Browse the repository at this point in the history
  • Loading branch information
xrmx committed Jan 22, 2025
1 parent 53535c7 commit 84bd80d
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,39 +16,39 @@ interactions:
aG9uIGNmZy9yZXRyeS1tb2RlI2xlZ2FjeSBCb3RvY29yZS8xLjM1LjU2
X-Amz-Date:
- !!binary |
MjAyNTAxMjJUMDkzODE2Wg==
MjAyNTAxMjJUMTYwODQwWg==
X-Amz-Security-Token:
- test_aws_security_token
X-Amzn-Trace-Id:
- !!binary |
Um9vdD0xLTQwODlkMjdjLWI3OGNmNGM2NmY4MTkwZDVmYTA1ZTE1NztQYXJlbnQ9NDM2NzViMjBl
NDUzMzlmYTtTYW1wbGVkPTE=
Um9vdD0xLTZjNTNiNTMyLTI0MDMzZTUwYzQ0M2JkODY2YTVhODhmMztQYXJlbnQ9MWM4ZDk4NmE2
Zjk1Y2Y0NTtTYW1wbGVkPTE=
amz-sdk-invocation-id:
- !!binary |
M2M4M2VkMjEtZTQ5Yy00NWU5LWI1YTQtMTJiNTA1NWQwMDM2
MmRkMzAxNjUtYTdmOC00MjAzLWJlOGItZmE1ZWEzYmFjOGUy
amz-sdk-request:
- !!binary |
YXR0ZW1wdD0x
authorization:
- Bearer test_aws_authorization
method: POST
uri: https://bedrock-runtime.eu-central-1.amazonaws.com/model/amazon.titan-text-lite-v1/converse
uri: https://bedrock-runtime.us-east-1.amazonaws.com/model/amazon.titan-text-lite-v1/converse
response:
body:
string: '{"metrics":{"latencyMs":676},"output":{"message":{"content":[{"text":"\"Sure,
I''m here"}],"role":"assistant"}},"stopReason":"max_tokens","usage":{"inputTokens":8,"outputTokens":10,"totalTokens":18}}'
string: '{"metrics":{"latencyMs":742},"output":{"message":{"content":[{"text":"Hey
there! Is there anything else"}],"role":"assistant"}},"stopReason":"max_tokens","usage":{"inputTokens":8,"outputTokens":10,"totalTokens":18}}'
headers:
Connection:
- keep-alive
Content-Length:
- '198'
- '215'
Content-Type:
- application/json
Date:
- Wed, 22 Jan 2025 09:38:17 GMT
- Wed, 22 Jan 2025 16:08:41 GMT
Set-Cookie: test_set_cookie
x-amzn-RequestId:
- ea0708e5-3c0b-4e31-b36d-54575e2c63da
- 9fe3b968-40b3-400c-a48d-96fdf682557c
status:
code: 200
message: OK
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,23 @@ interactions:
aG9uIGNmZy9yZXRyeS1tb2RlI2xlZ2FjeSBCb3RvY29yZS8xLjM1LjU2
X-Amz-Date:
- !!binary |
MjAyNTAxMjJUMDkzODE3Wg==
MjAyNTAxMjJUMTYwODQxWg==
X-Amz-Security-Token:
- test_aws_security_token
X-Amzn-Trace-Id:
- !!binary |
Um9vdD0xLWRjZjQ3N2U1LWNiM2U0YmU4MzM3ZDM4YjQxNTY0ZTVkODtQYXJlbnQ9ZjA2ZjM4YTJj
NTg2OThlZDtTYW1wbGVkPTE=
Um9vdD0xLTY4MzBlNjVhLTY4Y2JlMzA5ZTI2ZDA1ZjA4ZDZkY2M1YjtQYXJlbnQ9NjdlMDRlNjRj
NGZhOTI3MDtTYW1wbGVkPTE=
amz-sdk-invocation-id:
- !!binary |
ODA1MDcyMjYtMTcwMi00YWUzLWJiOTgtMTU3Njc1ZGRjNmVm
N2VhMWVmYzktMzlkYS00NDU1LWJiYTctMDNmYTM1ZWUyODU2
amz-sdk-request:
- !!binary |
YXR0ZW1wdD0x
authorization:
- Bearer test_aws_authorization
method: POST
uri: https://bedrock-runtime.eu-central-1.amazonaws.com/model/does-not-exist/converse
uri: https://bedrock-runtime.us-east-1.amazonaws.com/model/does-not-exist/converse
response:
body:
string: '{"message":"The provided model identifier is invalid."}'
Expand All @@ -42,12 +42,12 @@ interactions:
Content-Type:
- application/json
Date:
- Wed, 22 Jan 2025 09:38:17 GMT
- Wed, 22 Jan 2025 16:08:41 GMT
Set-Cookie: test_set_cookie
x-amzn-ErrorType:
- ValidationException:http://internal.amazon.com/coral/com.amazon.bedrock/
x-amzn-RequestId:
- 8e91ee82-b92f-48c8-9e67-3b68bf8ab48a
- 9ecb3c28-f72f-4350-8746-97c02140ced1
status:
code: 400
message: Bad Request
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def environment():
if not os.getenv("AWS_SESSION_TOKEN"):
os.environ["AWS_SESSION_TOKEN"] = "test_aws_session_token"
if not os.getenv("AWS_DEFAULT_REGION"):
os.environ["AWS_DEFAULT_REGION"] = "eu-central-1"
os.environ["AWS_DEFAULT_REGION"] = "us-east-1"


@pytest.fixture(scope="module")
Expand Down

0 comments on commit 84bd80d

Please sign in to comment.