Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/starlord-daniel/openai-wasm
https://github.com/starlord-daniel/openai-wasm
Last synced: 9 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/starlord-daniel/openai-wasm
- Owner: starlord-daniel
- License: mit
- Created: 2024-06-11T10:13:33.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-06-11T12:38:41.000Z (5 months ago)
- Last Synced: 2024-06-12T14:41:04.233Z (5 months ago)
- Language: Rust
- Size: 22.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# WASM application to run OpenAI chat
This application is a simple WASM application that runs a chatbot from OpenAI.
## Features
- [x] Web UI to type questions and get answers from OpenAI chatbot
- [x] WASM backend API to call OpenAI chatbot and handle responses
- [x] Keeping the context of the current conversation
- [ ] Connecting to Azure Search to search through user data
- [ ] Embedding the users question and send to Search
- [ ] Handle user data and send for formatting to OpenAI
- [ ] User authentication
- [ ] User history## Installation and running
```bash
spin build
spin run
```## Testing commands
Prepare the environment with the Makefile:
```bash
make prepare
```Then you can test the APIs and see the requests and responses by looking at the http/test.http file.
It contains requests to the OpenAI API, the internal APIs for OpenAI, Search and Health.
## Links
- [OpenAI](https://openai.com)
- [Azure Search](https://azure.microsoft.com/en-us/services/search/)
- [WASM](https://webassembly.org/)
- [Rust](https://www.rust-lang.org/)
- [Spin](https://spin.dev)
- [Search API](https://learn.microsoft.com/rest/api/searchservice/documents/search-post?view=rest-searchservice-2023-11-01&tabs=HTTP)