Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Nianavy/LLMer

Repository files navigation

LLMER

This project allows you to customize the Prompt for each starter, optimizes the UI with CSS, and provides a Docker image for easy deployment. Simply configure the config.json for a ready-to-use setup. Below is a guide on how to set up and run this project.

Table of Contents πŸ“š

Installation and Configuration πŸš€

  1. Install uv

    curl -LsSf https://astral.sh/uv/install.sh | sh
  2. Configure config.toml

[MODEL_MAP]
[[MODEL_MAP]."{name}"] # Corresponds to a model
profile_name = "Model A" # Display name of the model
model_name = "model-a" # Actual model name
markdown_description = "Description of Model A" # Model description
icon = "/public/model/model-a.svg" # Model icon
# Starter settings, up to four starters
[STARTERS]
START_1_LABEL = "Professional Copywriting Assistant" # Content displayed in the UI for the starter
START_1_MESSAGE = "Help me write a copy! Master" # Message sent when the starter is launched
START_1_ICON = "/public/icons/copywriter.webp" # Icon for the starter
# One prompt corresponds to one starter, the first prompt_1 is the default prompt
# From the second prompt_2 corresponds to the first starter prompt, must match the number of starters
# Default prompt: (prompt_1); starter: (prompt_2,prompt_3,prompt_4,prompt_5) up to four
[PROMPTS]
PROMPT_1 = """
xxxxxx
"""
  1. Sync Environment

    uv sync
  2. Run the Project

    cd src
    uv run -- chainlit run app.py -w --host 0.0.0.0 --port 8000
    • The --host and --port parameters are optional and can be adjusted as needed. Refer to chainlit for details.

Docker Deployment 🐳

Docker

mv config.toml.exp config.toml
# Modify .env as needed
docker run -d -p 8000:8000 -v ./config.toml:/app/config.toml bitfennec/llmer:latest

Visit http://localhost:8000 to view the running application.

Docker-Compose

git clone https://github.com/Mgrsc/llmer.git
cd llmer

Edit docker-compose.yaml as needed

services:
 llmer:
 image: bitfennec/llmer:latest
 container_name: llmer
 ports:
 - 30004:8000
 volumes:
 - ./config.toml:/app/config.toml
 # - ./src/public/model:/app/src/public/model # Optional, if you need to add icons
docker-compose up -d

Visit http://localhost:8000 to view the running application.

Contributions 🀝

If you have any suggestions for improvements or want to report issues, feel free to submit an issue or pull request (PR).

License πŸ“„

This project is based on Chainlit and uses the Apache 2.0 license. For details, please refer to the LICENSE file.

About

Chainlit-based LLM web chat

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 82.8%
  • CSS 10.3%
  • Dockerfile 6.9%

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /