Skip to content
Back to skills

Libllm

ASecurity

libllm - LLM API client for OpenAI-compatible endpoints. LlmApi class handles chat completions and embeddings via HTTP. Supports GitHub Models, Azure OpenAI, and standard OpenAI endpoints. Handles streaming responses, token counting, and multi-tool parallel call fixes. Use for LLM completions, embeddings, and AI model integration.

  • 30 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 12, 2026
ai-agentsjavascriptjavaazuregitapi

Works with

  • cli
  • api

Security analysis

A100/100

Scanned November 12, 2026

npx -y skills add majiayu000/claude-skill-registry-data --skill libllm --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Libllm?

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

Security grade badge for Libllm
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-libllm-claude-skill-registry-data/badge)](https://www.skillsdirectory.com/skills/majiayu000-libllm-claude-skill-registry-data)

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: libllm
description: >
  libllm - LLM API client for OpenAI-compatible endpoints. LlmApi class handles
  chat completions and embeddings via HTTP. Supports GitHub Models, Azure
  OpenAI, and standard OpenAI endpoints. Handles streaming responses, token
  counting, and multi-tool parallel call fixes. Use for LLM completions,
  embeddings, and AI model integration.
---

# libllm Skill

## When to Use

- Making chat completion requests to LLM providers
- Generating text embeddings for vector search
- Integrating with OpenAI-compatible APIs
- Handling streaming LLM responses

## Key Concepts

**LlmApi**: HTTP client for OpenAI-compatible endpoints. Handles authentication,
streaming, and response parsing.

**DEFAULT_MAX_TOKENS**: Standard token limit for completions.

## Usage Patterns

### Pattern 1: Chat completion

```javascript
import { LlmApi } from "@copilot-ld/libllm";

const api = new LlmApi(config, logger);
const response = await api.completion([{ role: "user", content: "Hello" }], {
  model: "gpt-4",
  maxTokens: 1000,
});
```

### Pattern 2: Generate embeddings

```javascript
const embeddings = await api.embed(["text to embed"]);
// Returns array of vectors
```

## Integration

Used by LLM service. Configurable via environment for different providers
(OpenAI, Azure, GitHub Models).

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.

View all in ai-agents →

Comments

Loading comments…

Newsletter

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