This project is a language model gateway that provides an OpenAI compatible API for language models. It is built using FastAPI and GraphQL.
- Docker
- Docker Compose
- Make
To run the project locally, follow these steps:
-
Clone the repository:
git clone <repository-url> cd <repository-directory>
-
Set up the development environment:
make devsetup
-
Start the Docker containers:
make up
-
Navigate to the GraphQL endpoint:
http://localhost:5050/graphql
Here is a simple GraphQL query to get providers:
query getProviders {
providers(
query_id: "foo"
) {
total_count
results {
result_id
}
}
}
Just run the following commands to run OpenWebUI without OAuth:
make down; make up; make up-open-webui
Since the OpenWebUI uses Keycloak on both server side and browser side, you need to create a host mapping for keycloak
.
On Macs, this can be done by adding an entry to /etc/hosts
:
127.0.0.1 keycloak
Then run:
make down; make up; make up-open-webui-auth