langgenius / dify

Dify is an open-source LLM app development platform. Dify's intuitive interface combines AI workflow, RAG pipeline, agent capabilities, model management, observability features and more, letting you quickly go from prototype to production.

Home Page:https://dify.ai

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Accept `CODE_EXECUTION_API_KEY` as alias of `API_KEY` in `sandbox`

BorisPolonsky opened this issue · comments

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).
  • 请务必使用英文提交 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.

The divergence between

CODE_EXECUTION_API_KEY: ${CODE_EXECUTION_API_KEY:-dify-sandbox}
and
API_KEY: ${API_KEY:-dify-sandbox}
makes it harder to maintain these configurations in a single template for multiple components(i.e. api and sandbox) in helm chart.

2. Additional context or comments

I'm contributor of dify-helm and the riddance of this divergence would definitely simplify helm chart definition. Since sandbox is close-sourced, I could not make a PR and would like to request that dify consider this compatibility enhancement.

3. Can you help us with this feature?

  • I am interested in contributing to this feature.

Thx for the feedback! I'm merging the two parameters.