-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* base unit tests are added * OpenAI unit tests are added * `Backend.submit` with OpenaAI backend integration test is added * `.env.example` is added as a source of a project configuration * `README.md` now has project configuring and testing small guide
- Loading branch information
1 parent
4af96de
commit f87cc9e
Showing
24 changed files
with
562 additions
and
235 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# OpenAI compatible server address. | ||
|
||
# If you are going to run custom OpenAI API compatible service change this configuration. | ||
# Could be specified by --openai-base-url CLI parameter | ||
OPENAI_BASE_URL=http://127.0.0.1:8080 | ||
|
||
# The OpenAI API Key. | ||
# Could be specified by --openai-api-key CLI parameter | ||
OPENAI_API_KEY=invalid |
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,20 @@ | ||
# guidellm | ||
# guidellm | ||
|
||
# Project configuration | ||
|
||
The project is configured with environment variables. Check the example in `.env.example`. | ||
|
||
```sh | ||
# Create .env file and update the configuration | ||
cp .env.example .env | ||
|
||
# Export all variables | ||
set -o allexport; source .env; set +o allexport | ||
``` | ||
|
||
## Environment Variables | ||
|
||
| Variable | Default Value | Description | | ||
| --------------- | --------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ||
| OPENAI_BASE_URL | http://127.0.0.1:8080 | The host where the `openai` library will make requests to. For running integration tests it is required to have the external OpenAI compatible server running. | | ||
| OPENAI_API_KEY | invalid | [OpenAI Platform](https://platform.openai.com/api-keys) to create a new API key. This value is not used for tests. | |
Empty file.
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,9 +1,9 @@ | ||
from .base import Backend, BackendTypes, GenerativeResponse | ||
from .base import Backend, BackendEngine, GenerativeResponse | ||
from .openai import OpenAIBackend | ||
|
||
__all__ = [ | ||
"Backend", | ||
"BackendTypes", | ||
"BackendEngine", | ||
"GenerativeResponse", | ||
"OpenAIBackend", | ||
] |
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
Oops, something went wrong.