Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/starlord-daniel/openai-wasm


https://github.com/starlord-daniel/openai-wasm

Last synced: 9 days ago
JSON representation

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)