Sending app information to model_providers methods #5795

Closed
opened 2026-02-21 18:12:38 -05:00 by yindo · 0 comments
Owner

Originally created by @umut-ramazan on GitHub (Sep 25, 2024).

Self Checks

  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

1. Is this request related to a challenge you're experiencing? Tell me about your story.

There is an ai gateway project that we use. We want to include dify in it. But when sending a request to providers, I need to specify which app it is in the header. We want this feature to come.

2. Additional context or comments

We tried several times but couldn't find the place that calls the providers.
Incoming requests are coming to api/controllers/console/app/workflow.py but we couldn't find how they land on the provider through debugging.
api/core/provider_manager.py:51 also generates the provider credentials.
But we couldn't find how to provide the app id or app name there.
How can we do this?

3. Can you help us with this feature?

  • I am interested in contributing to this feature.
Originally created by @umut-ramazan on GitHub (Sep 25, 2024). ### Self Checks - [X] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [X] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [X] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [X] Please do not modify this template :) and fill in all the required fields. ### 1. Is this request related to a challenge you're experiencing? Tell me about your story. There is an ai gateway project that we use. We want to include dify in it. But when sending a request to providers, I need to specify which app it is in the header. We want this feature to come. ### 2. Additional context or comments We tried several times but couldn't find the place that calls the providers. Incoming requests are coming to api/controllers/console/app/workflow.py but we couldn't find how they land on the provider through debugging. api/core/provider_manager.py:51 also generates the provider credentials. But we couldn't find how to provide the app id or app name there. How can we do this? ### 3. Can you help us with this feature? - [X] I am interested in contributing to this feature.
yindo closed this issue 2026-02-21 18:12:38 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#5795