AWS bedrock documentation change
Summary
Updated OpenAI batch API examples to show list operations instead of retrieve operations
Security assessment
Changes demonstrate different API usage patterns without modifying security controls or addressing vulnerabilities. The authorization method remains unchanged.
Diff
diff --git a/bedrock/latest/userguide/inference-openai-batch.md b/bedrock/latest/userguide/inference-openai-batch.md index bb6bf496d..6ef43f87a 100644 --- a//bedrock/latest/userguide/inference-openai-batch.md +++ b//bedrock/latest/userguide/inference-openai-batch.md @@ -369 +369 @@ The example calls the OpenAI List batch jobs API in `us-west-2` and specifies a - job = client.batches.retrieve(batch_id="batch_abc123") # Replace with actual ID + job = client.batches.list(limit=2) @@ -399,2 +399,2 @@ The following example calls the OpenAI List batches API in `us-west-2` and speci - curl -X GET 'https://bedrock-runtime.us-west-2.amazonaws.com/openai/v1/batches/batch_abc123' \ - -H 'Authorization: Bearer $AWS_BEARER_TOKEN_BEDROCK' + curl -X GET 'https://bedrock-runtime.us-west-2.amazonaws.com/openai/v1/batches?limit=2' \ + -H 'Authorization: Bearer $AWS_BEARER_TOKEN_BEDROCK' \