docs: updating guides to provide more clarity around moderator (#628)

This commit is contained in:
Ebony Louis
2025-01-17 09:00:38 -05:00
committed by GitHub
parent 08f9e640fa
commit 89d464c305
8 changed files with 29 additions and 24 deletions
@@ -119,7 +119,7 @@ class AwsClient(httpx.Client):
credential_scope = f"{date_stamp}/{self.region}/{service}/aws4_request"
string_to_sign = (
f"{algorithm}\n{amz_date}\n{credential_scope}\n"
f'{hashlib.sha256(canonical_request.encode("utf-8")).hexdigest()}'
f"{hashlib.sha256(canonical_request.encode('utf-8')).hexdigest()}"
)
# Create the signing key
+3 -3
View File
@@ -75,9 +75,9 @@ def test_context_summarizer_rewrite(exchange_instance: Exchange, summarizer_inst
# Ensure roles alternate in the output
for i in range(1, len(exchange_instance.messages)):
assert (
exchange_instance.messages[i - 1].role != exchange_instance.messages[i].role
), "Messages must alternate between user and assistant"
assert exchange_instance.messages[i - 1].role != exchange_instance.messages[i].role, (
"Messages must alternate between user and assistant"
)
MESSAGE_SEQUENCE = [