Skip to content

Commit

Permalink
fix readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
reminia committed Oct 27, 2023
1 parent 3e7d79d commit 2ab6aae
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ A simple translate api that proxies to openai written by Golang.

2. Build by `make build`.
3. Start server by `./translate`.
4. Use translate-cli by `./translate -c "content" -l Chinese -m "gpt-3.5-turbo"`, -l and -m are optional.
4. Use translate-cli by `./translate-cli -c "content" -l Chinese -m "gpt-3.5-turbo"`, -l and -m are optional.

## Endpoints

Expand Down Expand Up @@ -40,6 +40,8 @@ There are 3 endpoints for now:

## Docker

Use the [image](https://github.com/reminia/translateit/pkgs/container/translateit) build by github action or build the image yourself.

* build: `docker build -t translate .`
* setup OPENAI_KEY, OPENAI_MODEL in an env file
* start: `doccker run --env-file env -p 8081:8080 -d translate`
* start: `docker run --env-file env -p 8081:8080 -d translate`

0 comments on commit 2ab6aae

Please sign in to comment.