Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cwiederspan/dapr-chat-20230822
A Dapr-implemented OpenAI chat service demo
https://github.com/cwiederspan/dapr-chat-20230822
Last synced: about 1 month ago
JSON representation
A Dapr-implemented OpenAI chat service demo
- Host: GitHub
- URL: https://github.com/cwiederspan/dapr-chat-20230822
- Owner: cwiederspan
- License: mit
- Created: 2023-08-22T21:52:55.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-23T23:54:49.000Z (over 1 year ago)
- Last Synced: 2024-08-01T13:19:39.635Z (4 months ago)
- Language: C#
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-semantickernel - dapr-chat-20230822 - implemented OpenAI chat service demo (Open Source Projects)
README
# Dapr Chat App
A Dapr-implemented OpenAI chat service demo.
```bash
dapr run --dapr-http-port 3500 --app-id myapp --app-port 5000 -- dotnet run
curl -X POST http://127.0.0.1:3500/v1.0/actors/ChatActor/999/method/Chat -d '{ "content": "Hello, World!" }'
curl -X POST http://127.0.0.1:35453/v1.0/actors/ChatActor/999/method/Chat -d '{ "content": "Hello, World!" }'
curl -v http://127.0.0.1:5000/chat
curl -v -X POST http://127.0.0.1:5000/chat/999 -d 'This is a test!!!'
curl -v -H 'Content-Type: application/json' -X POST http://127.0.0.1:5000/chat/fe03df2c-b426-481a-961b-4a5db2390ab2 -d '{ "content": "Hello, World!" }'
```