Skip to content

Commit beed847

Browse files
committed
Ignore unicode characters in LLM responses
1 parent b5cb645 commit beed847

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/external_botocore/_test_bedrock_chat_completion.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
# Ignore unicode characters in this file from LLM responses
16+
# ruff: noqa: RUF001
17+
1518
chat_completion_payload_templates = {
1619
"amazon.titan-text-express-v1": '{ "inputText": "%s", "textGenerationConfig": {"temperature": %f, "maxTokenCount": %d }}',
1720
"ai21.j2-mid-v1": '{"prompt": "%s", "temperature": %f, "maxTokens": %d}',

0 commit comments

Comments
 (0)