Giter Site home page Giter Site logo

parzon / llm-server Goto Github PK

View Code? Open in Web Editor NEW

This project forked from promptengineers-ai/llm-server

0.0 0.0 0.0 18.45 MB

๐Ÿค– Open-source LLMs server (OpenAI, LLaMA2, Bedrock) with support for HTTP, Server Sent Events, and Vector Search (Pinecone, Redis).

Home Page: https://llm-server-flame.vercel.app

License: MIT License

Shell 10.09% Python 81.61% HTML 8.29%

llm-server's Introduction

๐Ÿค– Prompt Engineers AI - LLM Server

Full LLM REST API with prompts, LLMs, Vector Databases, and Agents

Useful Links

๐Ÿ› ๏ธ Server Setup and Usage

### Setup Virtual Env
python3 -m venv .venv

### Activate Virtual Env
source .venv/bin/activate

### Install Runtime & Dev Dependencies
pip install -r requirements.txt -r requirements-dev.txt

### Install Runtime Dependencies
pip install -r requirements.txt

### Run Application on local machine
bash scripts/dev.sh

๐Ÿ› ๏ธ Client Setup and Usage

### Navigate to client folder
cd client

### Install Dependencies
npm install

### Run Development Environment
npm start

### Build Production Start App (Optional)
bash scripts/client.sh

Environment Variables

Variable Name Example Description
APP_SUPER_ADMIN_KEY this-is-a-secret-key Custom `x-api-key` header
USER_admin password Basic Authentication
OPENAI_API_KEY sk-abc123... Default LLM OpenAI key
MONGO_CONNECTION mongodb://localhost:27017 Mongo database server host
MONGO_DB_NAME promptengineers-llm-server Application database

Deploy

  1. Log in to vercel
vercel login
  1. Deploy to vercel
vercel .

๐Ÿค How to Contribute

We welcome contributions from the community, from beginners to seasoned developers. Here's how you can contribute:

  1. Fork the repository: Click on the 'Fork' button at the top right corner of the repository page on GitHub.

  2. Clone the forked repository to your local machine: git clone <forked_repo_link>.

  3. Navigate to the project folder: cd llm-server.

  4. Create a new branch for your changes: git checkout -b <branch_name>.

  5. Make your changes in the new branch.

  6. Commit your changes: git commit -am 'Add some feature'.

  7. Push to the branch: git push origin <branch_name>.

  8. Open a Pull Request: Go back to your forked repository on GitHub and click on 'Compare & pull request' to create a new pull request.

Please ensure that your code passes all the tests and if possible, add tests for new features. Always write a clear and concise commit message and pull request description.

๐Ÿ’ก Issues

Feel free to submit issues and enhancement requests. We're always looking for feedback and suggestions.

๐Ÿค“ Maintainers

๐Ÿ“œ License

This project is open-source, under the MIT License. Feel free to use, modify, and distribute the code as you please.

Happy Prompting! ๐ŸŽ‰๐ŸŽ‰

llm-server's People

Contributors

ryaneggz avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.