anthropic
system
prompt separately, you can pass it as part of the messages
body, similar to OpenAI:
claude-3-sonnet
, claude-3-haiku
, claude-3-opus
, and the latest claude-3.5-sonnet
.
Obiguard follows the OpenAI schema, which means you can send your image data to Anthropic in the same format as OpenAI.
base64
-encoded images. Unlike OpenAI, it does not support image URLs
.claude-3.5-sonnet
model
url
field inside the image_url
object to this pattern: data:application/pdf;base64,BASE64_PDF_DATA
claude-3-7-sonnet-20250219
)claude-3-5-sonnet-20241022
, claude-3-5-sonnet-20240620
)claude-3-5-haiku-20241022
)response_chunk.choices[0].delta.content_blocks
array, not the response.choices[0].message.content
string.claude-3-7-sonnet-latest
support extended thinking.
This is similar to openai thinking, but you get the model’s reasoning as it processes the request as well.
Note that you will have to set strict_open_ai_compliance=False
in the headers to use this feature.
"x-obiguard-anthropic-beta": "token-efficient-tools-2025-02-19"
For SDKs, you can specify this during client initialization or use createHeaders
with the OpenAI SDK: