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

Can support llm by api? #65

Closed
skytodmoon opened this issue Sep 2, 2024 · 7 comments
Closed

Can support llm by api? #65

skytodmoon opened this issue Sep 2, 2024 · 7 comments

Comments

@skytodmoon
Copy link

skytodmoon commented Sep 2, 2024

Greate project, we want use this in our production dev. And use dify chat api as below:
http://192.168.32.241:8088/
Request POST /chat-messages curl -X POST 'http://192.168.32.241:8088/v1/chat-messages' \ --header 'Authorization: Bearer {api_key}' \ --header 'Content-Type: application/json' \ --data-raw '{ "inputs": {}, "query": "What are the specs of the iPhone 13 Pro Max?", "response_mode": "streaming", "conversation_id": "", "user": "abc-123", "files": [ { "type": "image", "transfer_method": "remote_url", "url": "https://cloud.dify.ai/logo/logo-site.png" } ] }'
Cant this be supported?

@SinlinLi
Copy link

SinlinLi commented Sep 2, 2024

Strongly support. If the standard OpenAI API is supported, it will facilitate our use of large-parameter language models. This would be extremely convenient.

@andimarafioti
Copy link
Member

I like this idea as well 💡It would probably add delay though, but it would be a good way to help people get this into prod.

I will add it to the ideas. If you want to work on it, we welcome contributions :)

@jpysh
Copy link

jpysh commented Sep 3, 2024

current blocker for me. thank you.

@rchan26
Copy link
Contributor

rchan26 commented Sep 4, 2024

I'm happy to have a go at including OpenAI API support 😊

@rchan26
Copy link
Contributor

rchan26 commented Sep 4, 2024

ah, just seen there's already a PR for this in #81

@MattiPaivike
Copy link

Bump, this would be perfect addition!

@eustlb
Copy link
Collaborator

eustlb commented Sep 20, 2024

Hey there, the OpenAI API PR (#81) is now merged!
Give ti a go simply adding the following parameters: --llm open_api --open_api_api_key YOUR_API_KEY --open_api_init_chat_prompt "You are an helpfull AI assistant" --open_api_stream True --open_api_model_name gpt-3.5-turbo

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

No branches or pull requests

7 participants