Welcome to Portkey Forum

Updated 2 weeks ago

dify ai

How do I get portkey to be the model provider in dify.ai
G
2 comments
Hey @Raj I haven't tried, have you tried setting up any custom providers on dify?
https://docs.dify.ai/guides/model-configuration/new-provider
if the configuration allows you to set custom_headers, you can simply set these two headers
Plain Text
  "x-portkey-api-key: YOUR_PORTKEY_API_KEY" \
  "x-portkey-virtual-key: YOUR_VIRTUAL_KEY" \

and call https://api.portkey.ai/v1/chat/completions with an openai chat completions body
Add a reply
Sign up and join the conversation on Discord