This is a simple demo application designed to showcase multi-turn conversations and project Q&A functionalities.
- Supports multi-turn conversations
- Supports online Q&A
- Supports uploading local zip files for project Q&A and modifications
- Supports inputting GitHub project links for Q&A and modifications
- Clone the repository locally.
- Start the model. You can deploy the model via vllm or ollama, provide the OpenAI request format, set the deployed
api_base
andapi_key
, or access the CodeGeeX API to get an API key. Fill in the corresponding information in the .env file.
# Using open.bigmodel.cn API
openai_api_key = ""
openai_api_base = "https://open.bigmodel.cn/api/paas/v4/"
model_name = "codegeex-4"
# Using vllm
openai_api_key = "EMPTY"
openai_api_base = "http://xxxx:xxxx/v1"
model_name = "codegeex4-all-9b"
- Fill in the corresponding model information and
bing_search_api
(if you want to experience online queries) in the .env file. Turn on the online query switch on the left side of the input box during the chat, which is off by default. - Install dependencies:
pip install -r requirements.txt
- Run the application:
chainlit run run.py --port 8899
Please ensure your network environment can access the CodeGeeX API.
Thank you for using our application. If you have any questions or suggestions, please feel free to contact us. We look forward to your feedback and are committed to providing you with better service.