8000 GitHub - tuhinmallick/myla: a local implementation of OpenAI Assistants API: myla stands for MY Local Assistant
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
forked from muyuworks/myla

a local implementation of OpenAI Assistants API: myla stands for MY Local Assistant

License

Notifications You must be signed in to change notification settings

tuhinmallick/myla

 
 

Repository files navigation

English | 简体中文

Myla: MY Local Assistants

Self-hosting AI Assistants compatible with OpenAI

Myla stands for MY Local Assistants and is designed and optimized for deploying AI assistants based on large language models (LLMs) in a private environment. Myla provides an API compatible with the OpenAI assistants API, with support for multiple LLM backends. Whether on a laptop or a production server, you can quickly develop and run AI assistants.

Quick Start

Installation

Python version requirement: <= 3.11

Myla can be installed from PyPI using pip. It is recommended to create a new virtual environment before installation to avoid conflicts.

pip install myla

Configuration

Myla supports using an OpenAI API-compatible LLM service as the backend. You can use the OpenAI API directly or deploy your own local LLM. If you want to deploy a local LLM, it is recommended to use Xorbits Inference.

Create a .env file in the current directory with the following content:

# Database configuration
DATABASE_URL=sqlite:///myla.db
DATABASE_CONNECT_ARGS={"check_same_thread": false}

# LLM configuration
LLM_ENDPOINT=https://api.openai.com/v1/
LLM_API_KEY=sk-xx
DEFAULT_LLM_MODEL_NAME=gpt-3.5-turbo

Start

myla

or

python -m myla

For more startup options:

myla --help

WebUI

Myla provides a simple web interface that makes it easy to develop and debug assistants.

Access from your browser: http://localhost:2000/

Screenshot

API

You can directly use the OpenAI python SDK to access the assistants API.

Community

Myla is still under rapid development, and community contributions are welcome.

About

a local implementation of OpenAI Assistants API: myla stands for MY Local Assistant

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 66.7%
  • JavaScript 31.8%
  • HTML 1.1%
  • Other 0.4%
0