{"id":22963581,"url":"https://github.com/mj23978/openserver","last_synced_at":"2025-10-13T11:41:10.055Z","repository":{"id":206601324,"uuid":"717266958","full_name":"Mj23978/OpenServer","owner":"Mj23978","description":"Open Server is an OpenAI API Compatible Server for generating text, images, embeddings, and storing them in vector databases. It also includes a chat functionality.","archived":false,"fork":false,"pushed_at":"2023-12-08T23:51:11.000Z","size":2067,"stargazers_count":17,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-13T07:38:10.959Z","etag":null,"topics":["autogen","g4f","image-generation","langchain","litellm","llamacpp","llm","llmops","openai","stable","vector-database","whisper"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Mj23978.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-11T00:32:31.000Z","updated_at":"2025-08-07T12:29:43.000Z","dependencies_parsed_at":"2024-12-14T19:36:23.092Z","dependency_job_id":"4b941b11-e21c-4679-8d3a-f08449900878","html_url":"https://github.com/Mj23978/OpenServer","commit_stats":null,"previous_names":["mj23978/openserver"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Mj23978/OpenServer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mj23978%2FOpenServer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mj23978%2FOpenServer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mj23978%2FOpenServer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mj23978%2FOpenServer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mj23978","download_url":"https://codeload.github.com/Mj23978/OpenServer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mj23978%2FOpenServer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279014804,"owners_count":26085594,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["autogen","g4f","image-generation","langchain","litellm","llamacpp","llm","llmops","openai","stable","vector-database","whisper"],"created_at":"2024-12-14T19:36:12.408Z","updated_at":"2025-10-13T11:41:10.034Z","avatar_url":"https://github.com/Mj23978.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Open Server 🚀\n\n![Hero Image](./docs/hero.jpg)\n\n## Table of Contents\n\n- [Open Server 🚀](#open-server-)\n  - [Table of Contents](#table-of-contents)\n  - [Overview 📖](#overview-)\n  - [Updates ✨🧨](#updates-)\n  - [Roadmap 🗺️](#roadmap-️)\n    - [How to Install \\\u0026 Run ⚙️](#how-to-install--run-️)\n    - [Features ✨](#features-)\n  - [Server Configurations 🛠️](#server-configurations-️)\n      - [All configs are stored in  `configs/`  folder.](#all-configs-are-stored-in--configs--folder)\n    - [Settings and API Keys](#settings-and-api-keys)\n    - [Models Configs](#models-configs)\n  - [Supported Provider](#supported-provider)\n    - [Completions and Chat Models](#completions-and-chat-models)\n    - [Image Models](#image-models)\n    - [Embeddings](#embeddings)\n    - [Vector Databases](#vector-databases)\n  - [Contributing](#contributing)\n\n## Overview 📖\n\nOpen Server is my attempt to recreate an **OpenAI Compatible Server** for generating text, images, embeddings, and storing them in vector databases. It also includes a chat functionality. \n\nThe server's request and responses are very similar to OpenAI's API with additional fields needed for different providers. It uses **Langchain** for the LLM part (Robust and powerful with callbacks) and provider SDKs for image generation and more.\n\n## Updates ✨🧨\n\n- 9 December 2023 : Added **OpenRouter** and **NeuroAPI** to providers as config based on OpenAI provider. Added cost calculation to config and routes in usage.\n\n## Roadmap 🗺️\n\n- [ ] Python SDK\n- [ ] Docker Compose\n- [ ] ( **Soon** ) Example Next.JS Front working with Open Server\n- [ ] Monitoring for LLM generation (LLM Monitor \u0026 Prompt Layer)\n- [ ] ( **Soon** ) Audio Translation \u0026 Generation \u0026 Transcription APIs (Local with Whisper, ElevenLabs)\n\n### How to Install \u0026 Run ⚙️\n\nTo install the required packages:\n```\npip install -r requirements.txt\n```\n\nTo run the server:\n```\npython -m openserver.main\n```\n\n**Note**: For GPU support, you need to manually install **pytorch** and **llama-cpp-python**, based on your GPU type (CUDA \u0026 ROCM).\n\n### Features ✨\n\nThis section lists the key features implemented in Open Server:\n\n-   #### Chat \u0026 Completions 💬\n    -   Streaming\n    -   Function Calling\n    \n-   #### Image \n    -   Text-to-Image \n\n\n## Server Configurations 🛠️\n\n\n#### All configs are stored in  `configs/`  folder.\n\n\n###  Settings and API Keys\n\nThis file is used to store API keys, URLs, and other similar information. It has a YAML structure and can be used to configure various aspects of the server.\n\nExample `config.yaml`:\n```yaml\nOPENAI_API_KEY: YOUR_OPEN_API_KEY\nPALM_API_KEY: YOUR_PALM_API_KEY\n\nDB_NAME: test\nDB_HOST: localhost\nDB_USERNAME: admin\nDB_PASSWORD: admin\n\n# Add more configuration options as needed...\n```\n\n### Models Configs\n\nThese configurations are stored in separate files for better organization and modularity. Each config file follows the YAML structure.\n\nExample LLM Config (`llm_config.yaml`):\n```yaml\nchat_providers:\n  palm:\n    name: palm\n    models: \n      - \"models/text-bison-001\"\n    available: true\n    \n# Add more LLM configs as needed...\n```\n\nExample Image Config (`image_config.yaml`):\n```yaml\nimage_models:\n  novita:\n    name: novita\n    models:\n      - \"dynavisionXLAllInOneStylized_release0534bakedvae_129001.safetensors\"\n    available: true\n    api_key: true\n    api_key_name: NOVITA_API_KEY\n\n# Add more image configs as needed...\n```\n\nExample Prompt Config (`prompts_config.yaml`):\n```yaml\nprompts:\n  function_call:\n    name: \"function_call\"\n    file: \"/prompts/function_call.txt\"\n\n# Add more prompt configs as needed...\n```\n\nExample Vector Database Config (`vectordb_config.yaml`):\n```yaml\nembeddings:\n  cohere:\n    name: cohere\n    models: \n      - \"embed-english-light-v2.0\"\n      - \"embed-english-v2.0\"\n    available: true\n    api_key: true\n\nvectordbs:\n\n  chromadb:\n    available: true\n   \n# Add more vector database configs as needed...\n```\n\nFeel free to modify and extend these configurations according to your specific needs.\n\n## Supported Provider\n\n### Completions and Chat Models \n\n|   |     Provider     |   Completion  |      Chat     | Function Calling |   Streaming   |   |\n|:-:|:----------------:|:-------------:|:-------------:|:----------------:|:-------------:|:-:|\n|   |   -------------  | ------------- | ------------- |   -------------  | ------------- |   |\n|   |      openai      |       ✅       |       ✅       |         ✅        |       ✅       |   |\n|   |      cohere      |       ✅       |       ✅       |                  |       ✅       |   |\n|   |    huggingface   |       ✅       |               |                  |       ✅       |   |\n|   |    together-ai   |       ✅       |       ✅       |        ✅*        |       ✅       |   |\n|   |    google-palm   |       ✅       |       ✅       |         ✅        |       ✅       |   |\n|   |       ai21       |       ✅       |               |         ✅        |       ✅       |   |\n|   |     fireworks    |       ✅       |       ✅       |        ✅*        |       ✅       |   |\n|   | llama-cpp-python |       ✅       |               |         ✅        |       ✅       |   |\n\n* **Some models** of provider support Function Calling.\n\n### Image Models\n\n|   |    Provider   |    Txt2Img    |    Img2Img    |    Upscale    |   |\n|:-:|:-------------:|:-------------:|:-------------:|:-------------:|:-:|\n|   | ------------- | ------------- | ------------- | ------------- |   |\n|   |     openai    |       ✅       |       ✅       |               |   |\n|   |  together-ai  |       ✅       |               |               |   |\n|   |     novita    |       ✅       |       ✅       |       ✅       |   |\n|   |    segmind    |       ✅       |       ✅       |               |   |\n\n### Embeddings\n\npalm, huggingface, openai, gradient, cohere\n\n\n### Vector Databases\n\nchromadb, lancedb, milvus, pinecone, qdrant,redis, weaviate\n\n## Contributing\nTo contribute: Clone the repo locally -\u003e Make a change -\u003e Submit a PR with the change. \n\nHere's how to modify the repo locally: \nStep 1: Clone the repo \n```\ngit clone https://github.com/mj23978/openserver.git\n```\n\nStep 2: Navigate into the project, and install dependencies: \n```\ncd openserver\npip install -r requirements.txt\n```\n\nStep 3: Submit a PR with your changes! 🚀\n- push your fork to your GitHub repo \n- submit a PR from there \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmj23978%2Fopenserver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmj23978%2Fopenserver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmj23978%2Fopenserver/lists"}