Skip to content

asol-core (all services in one layer) – a lightweight core for interacting with AI services via a unified HTTP/REST API.

License

Notifications You must be signed in to change notification settings

zef2f/asol-core

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

asol – Simple AI Core

asol is a lightweight core for working with AI services through a single HTTP/REST API. It is built on Python 3 using FastAPI, Requests, Pydantic, and SQLite. Plugins enable integration with various AI services (such as OpenAI, Stable Diffusion, Whisper, etc.).


Project Structure

.   
├── asol_core  
│   ├── adapter_loader.py    # (Optional) Loads adapters  
│   ├── database.py          # SQLite operations (DB and logging)  
│   ├── __init__.py          # Defines package  
│   ├── main.py              # FastAPI server entry point  
│   ├── plugin_manager.py    # Handles plugins  
│   └── router.py            # Defines API routes  
├── client_scripts  
│   └── sample_client.py     # Example API request script  
├── Dockerfile               # (Optional) Containerization  
├── README.md                # This file  
├── requirements.txt         # Dependencies  
└── tests                    # (Optional) Tests  

Installation

Make sure you have Python 3 installed. Then run:

pip install -r requirements.txt

Running the Project

To start the server, run:

uvicorn asol_core.main:app --reload

The server will be available at http://localhost:8000


How asol Works

  1. The client sends an HTTP request to asol.
  2. The FastAPI server processes the request and passes it to plugin_manager.py.
  3. The Plugin Manager dynamically loads the required plugin and calls its process_request(params) method.
  4. The plugin interacts with an external AI service (such as OpenAI) and returns the result to the client.

asol is a simple yet extendable solution for working with AI!

License

This project is licensed under the GNU Affero General Public License v3.0 (AGPLv3). The full text of the license is available in the LICENSE file.

About

asol-core (all services in one layer) – a lightweight core for interacting with AI services via a unified HTTP/REST API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published