Skip to content
Back to skills

Api Serving

ASecurity

"Routes Chinese-LLaMA-Alpaca-2 FastAPI and OpenAI-compatible

  • 247 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 8, 2026
devopsfastapiapi

Works with

  • api

Security analysis

A100/100

Pro scans all 8 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill api-serving --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Api Serving?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Api Serving
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-api-serving-arex-skill/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-api-serving-arex-skill)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: api-serving
description: "Routes Chinese-LLaMA-Alpaca-2 FastAPI and OpenAI-compatible
  serving workflows."
metadata:
  disco-role: operating
disable-model-invocation: true
license: Apache 2.0
---

# api-serving

Use this sub-skill when the task is to expose Chinese-LLaMA-Alpaca-2 through an HTTP service, especially an OpenAI-compatible completion or chat endpoint.

## Use it when

- the user mentions `openai_api_server.py`, `openai_api_protocol.py`, FastAPI, Uvicorn, or SSE streaming
- the task is about `/v1/completions`, `/v1/chat/completions`, `/v1/models`, request validation, or response schemas
- the user asks how to serve a base model plus optional LoRA adapter
- the task is about optional vLLM serving constraints

## Workflow

1. Read `references/workflows.md` for endpoint, server, and request-schema details.
2. Use `scripts/openai_server_demo/openai_api_server.py` for the non-vLLM FastAPI server.
3. Use the vLLM script only after installing the optional vLLM/FastChat stack.
4. Confirm model path, tokenizer path, LoRA path, quantization, and CPU/GPU flags before launch.
5. Read `references/troubleshooting.md` for model-name, optional dependency, and serving-runtime failures.

## Bundled runtime files

- `scripts/openai_server_demo/openai_api_server.py`
- `scripts/openai_server_demo/openai_api_protocol.py`
- `scripts/openai_server_demo/openai_api_server_vllm.py` (optional dependency path)
- `scripts/openai_server_demo/openai_api_protocol_vllm.py` (optional dependency path)
- `scripts/attn_and_long_ctx_patches.py`

## What to read first

- `references/workflows.md` for endpoint shape and server flags
- `references/troubleshooting.md` for optional vLLM, LoRA, quantization, and model-name issues

## Routing notes

- Use this sub-skill for HTTP service behavior and request/response schemas.
- Use `hf-inference` for direct local generation with no server.
- Use `local-integrations` for llama.cpp server wrappers rather than the FastAPI server.

Files in this skill

  • SKILL.md1.9 KB
  • references/troubleshooting.md1.2 KB
  • references/workflows.md2.1 KB
  • scripts/attn_and_long_ctx_patches.py10.1 KB
  • scripts/openai_server_demo/openai_api_protocol.py2.6 KB
  • scripts/openai_server_demo/openai_api_protocol_vllm.py5 KB
  • scripts/openai_server_demo/openai_api_server.py12.7 KB
  • scripts/openai_server_demo/openai_api_server_vllm.py26.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.