Skip to main content

Local OpenAI API runtime and tool-search foundation for multimodal Cappuccino-class models on Apple Silicon.

Project description

Cappuccino

simajilord is the package and CLI that exposes a local OpenAI-compatible runtime for Cappuccino-class models on Apple Silicon.

まだまだ未完成です。

Install

The model name stays cappuccino, but the package name is:

pip install simajilord

Public import and CLI:

python -c "import simajilord; print(simajilord.__file__)"
simajilord --help

Serve a local OpenAI-compatible endpoint

simajilord serve \
  --default-model-path /path/to/Cappuccino-27B \
  --public-model-id cappuccino \
  --host 127.0.0.1 \
  --port 8020

Quickstart with the OpenAI Python SDK

from openai import OpenAI

client = OpenAI(
    base_url="http://127.0.0.1:8020/v1",
    api_key="dummy",
)

response = client.chat.completions.create(
    model="cappuccino",
    messages=[
        {"role": "user", "content": "日本語で一文だけ自己紹介して。"},
    ],
)

print(response.choices[0].message.content)

Quickstart with skill selection

Skill selection is a Cappuccino extension. The request stays OpenAI-compatible because skill metadata is converted into ordinary upstream instructions before the model call.

from openai import OpenAI

client = OpenAI(
    base_url="http://127.0.0.1:8020/v1",
    api_key="dummy",
)

response = client.responses.create(
    model="cappuccino",
    input="OpenAI API の公式情報だけで確認して要点をまとめて。",
    extra_body={
        "skill_choice": "auto",
    },
)

print(response.output_text)

Explicit skill selection:

from openai import OpenAI

client = OpenAI(
    base_url="http://127.0.0.1:8020/v1",
    api_key="dummy",
)

response = client.responses.create(
    model="cappuccino",
    input="最新の API 仕様を確認して。",
    extra_body={
        "skills": ["openai-docs"],
    },
)

print(response.output_text)

Skill registry layout

Each skill lives in its own directory and uses SKILL.md frontmatter:

---
name: openai-docs
description: Use when a task needs current OpenAI API documentation and official references.
---

Read the official docs first.

Load the registry at serve time:

simajilord serve \
  --default-model-path /path/to/Cappuccino-27B \
  --skill-registry /path/to/skills

Compatibility CLI alias:

cappuccino --help

Project details


Download files

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

Source Distribution

simajilord-0.1.1.tar.gz (186.2 kB view details)

Uploaded Source

Built Distribution

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

simajilord-0.1.1-py3-none-any.whl (153.9 kB view details)

Uploaded Python 3

File details

Details for the file simajilord-0.1.1.tar.gz.

File metadata

  • Download URL: simajilord-0.1.1.tar.gz
  • Upload date:
  • Size: 186.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.8 {"installer":{"name":"uv","version":"0.10.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for simajilord-0.1.1.tar.gz
Algorithm Hash digest
SHA256 545c38dc3abf57f138e37bf6c29b5b4c71e025bd6db5a6c50831c1fe9cc584ad
MD5 2e5f4d655a1e4bbb75f5389e9c4de529
BLAKE2b-256 57ca353d2cad1655d8b10b91b17012d197086799a47b45923bb24eb2785eceb2

See more details on using hashes here.

File details

Details for the file simajilord-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: simajilord-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 153.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.8 {"installer":{"name":"uv","version":"0.10.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for simajilord-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c7c5e0f1b1bad4f6f5e7fcb9b765323dd675013deb4ab29c26b0226132d51782
MD5 666ba06737c8d7ca7364c2c2acdb6a62
BLAKE2b-256 3f51a5472aeafe94ec2de53b413b99cd2c16f52884483c38ed3d4b5e9f42e463

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