Launch RESTful API Server
Here are the steps to launch a local OpenAI API server for LangChain. First, launch the controller--model-path
can be a local folder or a Hugging Face repo name.
See a full list of supported models here.
Set OpenAI Environment
You can set your environment with the following commands. Set OpenAI base urlexport FASTCHAT_WORKER_API_EMBEDDING_BATCH_SIZE=1
.