Skip to main content

MicroPython library for LLM access on MCU

Project description

uLLMpy - MicroPython LLM Access Library

uLLMpy is a MicroPython library designed for large language model (LLM) applications on ESP32S3 modules. It supports basic functionality like making HTTP requests, handling JSON, and timing operations for AI-related tasks.

Requirements

  • MicroPython v1.23.0
  • ESP32 hardware

Installation

To install the package, use the following command:

'pip install uLLMpy'

Example Usage

import uLLMpy


## Example Usage

```python
import uLLMpy


api_key = 'sk-emmmmm'

client = uLLMpy.DeepSeek(api_key=api_key)



client.chat("Who r u?", mode="new")


client.chat("I'm a coder.", mode="continue")


message='Do you support speak in Chinese?'
client.chat(message, mode="continue")

print(client.chat_history)

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ullmpy-0.1.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

uLLMpy-0.1-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file ullmpy-0.1.tar.gz.

File metadata

  • Download URL: ullmpy-0.1.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.3

File hashes

Hashes for ullmpy-0.1.tar.gz
Algorithm Hash digest
SHA256 ef73863711603bf95f04afff6b6d7722e16cd928670cd7686dbb2783015346f6
MD5 b700617a4784bae8fdfbeaad9cab48fc
BLAKE2b-256 25bf1d54c6217b4d84aec4e29f0a90088505039326a23bc784648d52e982c436

See more details on using hashes here.

File details

Details for the file uLLMpy-0.1-py3-none-any.whl.

File metadata

  • Download URL: uLLMpy-0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.3

File hashes

Hashes for uLLMpy-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 34570d9c20dcab199be070607b9924dbac49aee079b978a41afe031e11edbe42
MD5 9faa47bb65708269a4bb7cee93e40a6d
BLAKE2b-256 23534338f5bef60a69ec9b1b5f91129eec6bf6f1026aa3bb8c3d5036fd365666

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page