Skip to main content

Lime

Lime is the MaaS proxy for anonymously access with OpenAI API.

  • Compatible with multiple OpenAI API endpoints.
  • Allow anonymous access for unregistered users.
  • Configurable for free MaaS services and models.

Install

Install with pip.

pip install orchard-lime

Setup

Prepare a configuration file named lime.yaml with the following content. Change MaaS and API KEY if needed.

maas:
  base_url: "https://api.siliconflow.cn/v1"
  api_key: ""
  default_model: ""
  models:
    - "Qwen/Qwen2-7B-Instruct"
    - "Qwen/Qwen2-1.5B-Instruct"
    - "Qwen/Qwen1.5-7B-Chat"
    - "THUDM/glm-4-9b-chat"
    - "THUDM/chatglm3-6b"
    - "01-ai/Yi-1.5-9B-Chat-16K"
    - "01-ai/Yi-1.5-6B-Chat"
    - "google/gemma-2-9b-it"
    - "internlm/internlm2_5-7b-chat"
    - "meta-llama/Meta-Llama-3-8B-Instruct"
    - "meta-llama/Meta-Llama-3.1-8B-Instruct"
    - "mistralai/Mistral-7B-Instruct-v0.2"

Start with uvicorn.

uvicorn lime.main:app --reload --port 10000

Usage

Use HTTP API with curl.

curl -X POST "http://127.0.0.1:10000/v1/chat/completions" -H "Content-Type: application/json" -d '{
  "model": "Qwen/Qwen2-7B-Instruct",
  "messages": [{"role": "user", "content": "Who are you?"}]
}'

Use bascket command.

basket maas use Lime

basket model use Qwen/Qwen2-7B-Instruct

basket chat "what is the meaning of life?"

Metadata

Release files for orchard-lime 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for orchard-lime 0.1.0
File Size Uploaded Provenance
orchard_lime-0.1.0.tar.gz 7.2 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for orchard-lime 0.1.0
File Interpreter ABI Platform
orchard_lime-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 15.0 kB

Release files / orchard_lime-0.1.0.tar.gz

Download URL orchard_lime-0.1.0.tar.gz
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
64719ef4dae8b61b3844d178bcec31b6a65abb6a58934bc07375a28ffa016199
BLAKE2b-256 checksum
How to use checksums
13295389c8fb900584bed1dbd7499fe8322e2620ffe3a8d486965dc429c307d9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.9.6 requests/2.28.2 setuptools/65.6.3 requests-toolbelt/0.9.1 tqdm/4.65.0 CPython/3.9.16

Release files / orchard_lime-0.1.0-py3-none-any.whl

Download URL orchard_lime-0.1.0-py3-none-any.whl
Size 7.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fcb2c8f3fa95d432f3c493d91119f30e37f892f1d0a20c70d2c921ff79df0311
BLAKE2b-256 checksum
How to use checksums
7be2e821b3fa28b6c9925af6e0c823fdb3dbca64f4a559b73a1b5913866de13a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.9.6 requests/2.28.2 setuptools/65.6.3 requests-toolbelt/0.9.1 tqdm/4.65.0 CPython/3.9.16

Security for orchard-lime 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page