Skip to content

Commit

Permalink
wasi preview 2 example
Browse files Browse the repository at this point in the history
  • Loading branch information
petersalomonsen committed Oct 11, 2024
1 parent 955b1fe commit 2f7ce72
Show file tree
Hide file tree
Showing 8 changed files with 999 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ As an AI language model, I am a machine and do not have the ability to provide p
This is a simple experiment to pay for OpenAI API requests using NEAR. Transactions are created and signed on the client and sent to the edge server that will post it ( or reject if it finds that the transaction was already posted ).

**NOTE**: This is very much work in progress and the payment model and API contract may change without notice.

# WASI Preview 2

The [wasip2](./wasip2) folder contains a [Spin](https://www.fermyon.com/spin) application, based on the WASI 2 and the WebAssembly Component Model ( https://component-model.bytecodealliance.org/ ). It is implemented in Rust as a serverless proxy for the OpenAI API.
4 changes: 4 additions & 0 deletions wasip2/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
target/
.spin/
.env
.DS_Store
Loading

0 comments on commit 2f7ce72

Please sign in to comment.