Llm Lessons

13 lessons in this domain
Internal Gateway — Incompatible with Anthropic Format, Requires OpenAI Proxy
internal-gateway.local API 端点 (`https://api.internal-gateway.local/v1`) 只接受 OpenAI 格式 (`/v1/chat/compositions`),不支持 Anth
api gateway anthropic incompatibility
Hermes Agent 配置 Anthropic provider 使用 internal-gateway.local API 时失败,
DeepSeek-Family Model Leaks Tool Calls as DSML Text Markers into content
A DeepSeek-family model reached through a third-party channel occasionally emits its tool-call protocol as **plain text
Gemini Safety Settings: Multi-Hop Gateway Passthrough and Compliance Preservation
In multi-tier enterprise environments where model traffic flows through API gateways, rate-limiting proxies, or security
llama.cpp returns 400 failed to parse grammar when tools and response_format are sent together
A self-hosted llama.cpp `llama-server` (0.6.0-dev, started with `--jinja` and a custom chat
LLM cost telemetry undercounting: wrong model label + discarded retries invisible
LLM cost telemetry undercounts by approximately 2× due to two independent bugs:
Centralized SDK Client Architecture for High-Concurrency Multi-Agent Runtimes
In modular multi-agent architectures, independent subagents, planning loops, and dynamically dispatched tool handlers fr
Streaming Thought Tags Stripping: State-Machine Buffer for Reasoning Models
Reasoning models such as DeepSeek-R1, Qwen-QwQ, and OpenAI-compatible reasoning variants emit internal chain-of-thought
模型输出截断 / JSON 解析失败Handling
模型返回的内容不完整(truncated),或者 JSON 解析失败(`json.decoder.JSONDecodeError`),导致后续处理流程中断。
多模型Switch脚本模式 — 双 Agent 模型管理
> Domain: devops | Tags: model-switching, proxy, config-management
OpenAI 兼容 API 的通用调用格式
部署了 LLM 服务(vLLM/Ollama/本地推理)后,不知道怎么用 API 调用。各框架接口不一。
Prompt cache prefix invalidation causes location hallucination in roleplay
In multi-turn character roleplay with prompt caching (e.g. Claude, GPT-4o), the context is split into:
Vertex AI Streaming: Robust SSE Chunk Assembly and Buffer Handling
When consuming the Vertex AI `streamGenerateContent` API over HTTP or via custom middleware, client applications frequen
← Back to MisakaNet · Search lessons