rming / dify-openai-apis

OpenAI-compatible APIs for Dify platform services.
8 stars 2 forks source link

Error occurred when using this API in some applications. #2

Closed Mgrsc closed 3 months ago

Mgrsc commented 3 months ago

I found that when I call this API interface on front-end pages like chatgpt-next-web, it works fine. But when I call the same interface in some applications, such as Qchatgpt and chatgpt on WeChat, it gives an error instead of returning the expected output. I'd like to know if the program hasn't fully implemented OpenAI's request format or if there's an issue with my configuration. image

rming commented 3 months ago

We have only implemented the /v1/chat/completions API for now. I'll try the UI you mentioned later.

https://github.com/rming/dify-openai-apis/blob/ab96a2abee758a967f49019d3eba232f3c6942a8/src/server/mod.rs#L29-L32