Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/VaalaCat/raychat
turn your Raycast pro AI to OpenAI API Compatible API server
https://github.com/VaalaCat/raychat
Last synced: 3 months ago
JSON representation
turn your Raycast pro AI to OpenAI API Compatible API server
- Host: GitHub
- URL: https://github.com/VaalaCat/raychat
- Owner: VaalaCat
- License: mit
- Created: 2023-07-29T09:40:21.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-10T18:37:18.000Z (7 months ago)
- Last Synced: 2024-05-22T00:14:25.294Z (6 months ago)
- Language: Go
- Size: 40 KB
- Stars: 7
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Raychat
trun your raycast pro to a OpenAI API compatible api server
## Installation
you can use docker or run it directly
### easy way
if you have [Docker](https://www.docker.com) installed, you can run this command to start a server
```bash
docker run -dit --name raychat \
-p 8080:8080 \
-e EMAIL='your_email' \
-e PASSWORD='your_password' \
-e CLIENT_ID='your_client_id' \
-e CLIENT_SECRET='your_client_secret' \
-e EXTERNAL_TOKEN='your_fake_openai_token' \ # you can provide multi token like "token_a,token_b", token splitted with comma
--restart always \
vaalacat/raychat:latest
```or if you already have a token, you can run this command
```bash
docker run -dit --name raychat \
-p 8080:8080 \
-e TOKEN='your_token' \
-e EXTERNAL_TOKEN='your_fake_openai_token' \ # you can provide multi token like "token_a,token_b", token splitted with comma
--restart always \
vaalacat/raychat:latest
```then you can use `http://localhost:8080/v1/chat/completions` to test your server, arm and amd64 are both supported
### common way
0. clone this repo and `cd` into it
1. Install [Raycast](https://raycast.com)
2. Set Fiddler to capture traffic, get the `ClientID` and `ClientSecret`
3. Put the `ClientID` and `ClientSecret` into a `.env` file, fill Email and Password
4. Run `go run main.go` your server will start at `http://localhost:8080`
you can use `http://localhost:8080/v1/chat/completions` to test your server