Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: add dify2openai as a new AI provider #169

Closed
wants to merge 9 commits into from
Closed

Conversation

wizd
Copy link

@wizd wizd commented Aug 27, 2024

to intergrate dify workflow, we need to pass some extra info to the llm engine, such as:

  • workspace name
  • document path

tested with: https://github.com/wizd/dify2openai/tree/mydev

Copy link

vercel bot commented Aug 27, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
eidos ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 27, 2024 1:33am

@mayneyao
Copy link
Owner

I don't think this will work. If dify2openai is meant to convert dify into an OpenAI-compatible API format, then the provider type should be openai. There's no need to add a new provider. This approach also won't work for passing context.

I will provide the ability to pass dynamic parameters in the Prompt, which should meet your requirements.

@mayneyao
Copy link
Owner

#171

@wizd
Copy link
Author

wizd commented Sep 5, 2024

Thank you for the new code, I'll try the PR. currently I use a dispatcher dify chat to handle context command.

@mayneyao mayneyao marked this pull request as draft September 5, 2024 14:00
@mayneyao mayneyao closed this Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants