Llm provider config

From lza6/Armor-piercing-system-prompts · View interactive version

Llm provider config is an AI agent skill from the GitHub repository lza6/Armor-piercing-system-prompts. Configure direct LLM, embedding, and model-provider access for Langroid agents without mixing in agent orchestration.

How to use this skill

Skill file

llm-provider-config

Use this sub-skill when the task is to choose, build, validate, or troubleshoot Langroid LLM and embedding provider configuration. Stay at the provider-access layer: OpenAIGPTConfig, OpenAIGPT, AzureConfig, provider model strings, OpenAI-compatible api_base endpoints, API-key handling, HTTP clients, streaming/reasoning flags, and embedding config classes.

Scope boundary

Operating procedure

  1. Identify whether the user needs an LLM config, an embedding config, or both.
  2. Choose the smallest direct provider path before adding a proxy or gateway:
  1. Validate model string, API-key source, base URL shape, timeout/temperature/output-token settings, cache behavior, and optional HTTP-client needs before any generation call.
  2. For embeddings, configure only the embedding provider and dimensions here; leave collection/index/vector-store construction to the retrieval sub-skill.
  3. Use the bundled smoke script for no-network sanity checks when a config looks suspicious.

Bundled references

No-network smoke check

Run:

python scripts/provider_config_smoke.py

The script sanitizes provider environment variables for deterministic output, constructs representative provider and embedding configs, avoids chat(), generate(), and embedding calls, and falls back to a static source-derived check if optional runtime dependencies are not installed. Use --help for options.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.