No place for UNSTRUCTURED_API_KEY #4383

Closed
opened 2026-02-21 18:06:10 -05:00 by yindo · 3 comments
Owner

Originally created by @JSemc2 on GitHub (Jul 2, 2024).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • 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.

Dify version

0.6.12-fix1

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

image

✔️ Expected Behavior

There is no place to write a API key for UNSTRUCTURED.

Actual Behavior

No response

Originally created by @JSemc2 on GitHub (Jul 2, 2024). ### Self Checks - [X] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [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] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [X] Please do not modify this template :) and fill in all the required fields. ### Dify version 0.6.12-fix1 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce ![image](https://github.com/langgenius/dify/assets/50313378/adda536b-cf5c-4602-a1a7-69dd5d8bb8fe) ### ✔️ Expected Behavior There is no place to write a API key for UNSTRUCTURED. ### ❌ Actual Behavior _No response_
yindo added the 🐞 bug label 2026-02-21 18:06:10 -05:00
yindo closed this issue 2026-02-21 18:06:10 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Jul 2, 2024):

@JSemc2 Hello there! I'm here to help you with any bugs, questions, or contributions. Let's work together to solve the issue you're facing.

You can write the API key for UNSTRUCTURED_API_KEY in the .env file under the UNSTRUCTURED_API_KEY variable.

Here is the relevant section from the .env.example file:

UNSTRUCTURED_API_URL=
UNSTRUCTURED_API_KEY=

You should set the UNSTRUCTURED_API_KEY variable to your API key. For example:

UNSTRUCTURED_API_KEY=your-api-key-here

Make sure to also set the ETL_TYPE to Unstructured and configure the UNSTRUCTURED_API_URL with the appropriate API path if you are using the Unstructured.io file extraction scheme:

ETL_TYPE=Unstructured
UNSTRUCTURED_API_URL=http://unstructured:8000/general/v0/general

This will enable the use of the UNSTRUCTURED_API_KEY in the Dify application [1][2].

To continue talking to Dosu, mention @dosu.

@dosubot[bot] commented on GitHub (Jul 2, 2024): <!-- Greeting --> @JSemc2 Hello there! I'm here to help you with any bugs, questions, or contributions. Let's work together to solve the issue you're facing. <!-- Answer --> You can write the API key for `UNSTRUCTURED_API_KEY` in the `.env` file under the `UNSTRUCTURED_API_KEY` variable. Here is the relevant section from the `.env.example` file: ```plaintext UNSTRUCTURED_API_URL= UNSTRUCTURED_API_KEY= ``` You should set the `UNSTRUCTURED_API_KEY` variable to your API key. For example: ```plaintext UNSTRUCTURED_API_KEY=your-api-key-here ``` Make sure to also set the `ETL_TYPE` to `Unstructured` and configure the `UNSTRUCTURED_API_URL` with the appropriate API path if you are using the Unstructured.io file extraction scheme: ```plaintext ETL_TYPE=Unstructured UNSTRUCTURED_API_URL=http://unstructured:8000/general/v0/general ``` This will enable the use of the `UNSTRUCTURED_API_KEY` in the Dify application <sup>[[1]](https://github.com/langgenius/dify/blob/main/api/.env.example)</sup><sup>[[2]](https://github.com/langgenius/dify/blob/main/docker/.env.example)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
Author
Owner

@crazywoola commented on GitHub (Jul 2, 2024):

In docker/.env

ETL_TYPE=
UNSTRUCTURED_API_URL=
UNSTRUCTURED_API_KEY=
@crazywoola commented on GitHub (Jul 2, 2024): In `docker/.env` ``` ETL_TYPE= UNSTRUCTURED_API_URL= UNSTRUCTURED_API_KEY= ```
Author
Owner

@JSemc2 commented on GitHub (Jul 2, 2024):

Thanks.

@JSemc2 commented on GitHub (Jul 2, 2024): Thanks.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#4383