Closed taowang1993 closed 2 weeks ago
Hello dear taowang1993, thank you for your support and providing the edited script with the enviroment variables implementation. It should be useful for people who want to setup their .env file. As for the dockerfile, i havent tried it. As for the Dify, kindly note this repo is designed to folllow the API to be compatible with OpenAI's API. Dify have their own API implementation guide :
https://docs.dify.ai/guides/extension/api-based-extension Additionaly as per the "Local debugging" paragraph, you may need to port your application live instead of the localhost, for which you could use ngrok to make your local endpoint available anywhere.
I have made some changes in the branch feature/dify-support, i have uploaded dify.py and a sample curl command, kindly check it out and let me know if it works for you now,
Best regards, Pantelis
Hi. I modified the api.py file to convert api key and port to env variables.
Dockerfile
I am not sure if my impementation is correct.
I am hosting openspeech on Huggingface Spaces.
Then, I could not connect Dify to openspeech.
I tried the following url