Log in
Log into community
Welcome to Portkey Forum
New post
View all posts
Related posts
Did this answer your question?
😞
😐
😃
Powered by
Hall
Active
Updated 2 weeks ago
0
Follow
dify ai
dify ai
Active
0
Follow
R
Raj
2 weeks ago
·
How do I get portkey to be the model provider in dify.ai
G
2 comments
Share
Open in Discord
G
Griphook | Portkey
edited 2 weeks ago
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
G
Griphook | Portkey
2 weeks ago
if the configuration allows you to set custom_headers, you can simply set these two headers
Plain Text
Copy
"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
Join on Discord