-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor Dockerfile and workflow to include version pattern for relea…
…se branches
- Loading branch information
1 parent
0ba2ca9
commit 953c106
Showing
3 changed files
with
34 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,14 @@ | ||
# openai_api_mock | ||
# OpenAI API server mockup | ||
This is a simple fastapi based server mock that implements the OpenAI API. | ||
|
||
Available endpoints: | ||
- /v1/chat/completion | ||
|
||
Instead of running a LLM model to generate completions, it simply returns a response generated by surrogate models. Available surrogate models are: | ||
- "yes_no": returns random "yes" or "no" response | ||
- "lorem_ipsum": returns random "lorem ipsum" text | ||
|
||
## Run via docker: | ||
```bash | ||
docker pull ghcr.io/hummerichsander/openai_api_server_mock:v ... # replace ... with the latest version | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters