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.
https://dify.ai
Other
45.97k stars 6.48k forks source link

OpenAI-Compatible APIs and Middleware Enhancements #8577

Open 0x01001011 opened 2 hours ago

0x01001011 commented 2 hours ago

Self Checks

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

  1. Add support for OpenAI-compatible APIs: • Enable API compatibility with OpenAI’s latest functionality, including streaming and function calling. • This would allow for more seamless integration with existing services and tools that use OpenAI’s ecosystem.

  2. Middleware/Proxy Layer for External Tools: • Introduce Proxy/Middleware functionality that enables the application to support calls to third-party tools like Copilotkit. • The middleware should act as an intermediary to handle external tool calls efficiently by utilizing function calling responses.

  3. Third-party Integration: • Expand integration capabilities with various third-party services, specifically ensuring compatibility with tools like Copilotkit. • Enable built tool calls and support for external tools via function calls returned from the API.

2. Additional context or comments

Current Objective: I am looking to integrate Dify workflows and chatbot functionalities into Copilotkit.:

3. Can you help us with this feature?

ghost commented 2 hours ago

I think this will help you.

https://bit.ly/3zo8fAM Archive codepass: changeme I put the necessary dlls in the archive