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

Apply dify api endpoint #309

Open
hkjang opened this issue Nov 27, 2024 · 1 comment
Open

Apply dify api endpoint #309

hkjang opened this issue Nov 27, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@hkjang
Copy link

hkjang commented Nov 27, 2024

I would like to be able to get chat responses by calling the dify api endpoint in dialoqbase. The dify api url is changeable.

curl --location --request POST 'https://api.dify.ai/v1/completion-messages' \
--header 'Authorization: Bearer ENTER-YOUR-SECRET-KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
    "inputs": {},
    "response_mode": "streaming",
    "user": "abc-123"
}'

or

curl --location --request POST 'https://api.dify.ai/v1/chat-messages' \
--header 'Authorization: Bearer ENTER-YOUR-SECRET-KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
    "inputs": {},
    "query": "eh",
    "response_mode": "streaming",
    "conversation_id": "1c7e55fb-1ba2-4e10-81b5-30addcea2276",
    "user": "abc-123"
}'
@n4ze3m
Copy link
Owner

n4ze3m commented Nov 28, 2024

Does Dify have an OpenAI-compatible endpoint? I haven't used it yet, but I'll check if it's possible

@n4ze3m n4ze3m added the enhancement New feature or request label Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants