Log LLM requests with Keywords AI gateway
SDK helper | Works via Keywords AI? | Switch models? |
---|---|---|
@ai-sdk/openai | ✅ Yes | ✅ Yes |
@ai-sdk/anthropic | ✅ Yes (Anthropic models only) | ❌ No |
@ai-sdk/google | ✅ Yes | ✅ Yes |
Specify Keywords AI params in an object
Encode the object as a string
Add the header to your request
X-Data-Keywordsai-Params
header.Full example