Langsung ke konten
Skillpedia
API & server (backend)84k · #1422

omni-cache

Fungsinya

Skill ini menunjukkan cara melihat dan mengendalikan cache respons di OmniRoute. Skill ini untuk administrator yang ingin memakai ulang jawaban model sebelumnya atau menghapus jawaban yang usang.

Kapan dipakai

  • ✓Saat pengguna ingin melihat seberapa baik cache respons bekerja.
  • ✓Saat pengguna ingin menghapus respons yang disimpan di cache.
  • ✓Saat pengguna ingin mengatur berapa lama jawaban cache bertahan atau seberapa mirip pertanyaan harus agar jawaban dipakai ulang.

Link skill

https://github.com/cheaper-inference/OmniRoute/blob/release/v3.8.53/skills/omni-cache/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/cheaper-inference/OmniRoute/blob/release/v3.8.53/skills/omni-cache/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit →

Contoh permintaan ke AI

“Seberapa baik cache respons bekerja, dan bisakah Anda menghapus entri lama?”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Skill ini mendaftar panggilan untuk membaca statistik cache, menghapus entri atau statistik, dan melihat entri cache. Skill ini juga membahas kebijakan time-to-live dan pengaturan kemiripan semantik.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

<!-- generated by src/lib/agentSkills/generator.ts; manual edits will be overwritten -->

Overview

Manage the LLM response cache. View cache statistics, clear entries, configure TTL policies, and control semantic-similarity caching thresholds.

Authentication

All requests require a valid Bearer token or session cookie. Obtain a token via POST /api/auth/login or configure REQUIRE_API_KEY=false for local development.

Endpoints

GET /api/cache

Get cache statistics

curl http://localhost:20128/api/cache \
  -H "Authorization: Bearer $OMNIROUTE_TOKEN"

DELETE /api/cache

Clear all caches

curl -X DELETE http://localhost:20128/api/cache \
  -H "Authorization: Bearer $OMNIROUTE_TOKEN"

GET /api/cache/stats

Get detailed cache statistics

Returns detailed statistics for all cache layers.

curl http://localhost:20128/api/cache/stats \
  -H "Authorization: Bearer $OMNIROUTE_TOKEN"

DELETE /api/cache/stats

Clear cache statistics

curl -X DELETE http://localhost:20128/api/cache/stats \
  -H "Authorization: Bearer $OMNIROUTE_TOKEN"

GET /api/cache/entries

GET cache › entries

curl http://localhost:20128/api/cache/entries \
  -H "Authorization: Bearer $OMNIROUTE_TOKEN"

DELETE /api/cache/entries

DELETE cache › entries

curl -X DELETE http://localhost:20128/api/cache/entries \
  -H "Authorization: Bearer $OMNIROUTE_TOKEN"

GET /api/cache/reasoning

GET cache › reasoning

curl http://localhost:20128/api/cache/reasoning \
  -H "Authorization: Bearer $OMNIROUTE_TOKEN"

DELETE /api/cache/reasoning

DELETE cache › reasoning

curl -X DELETE http://localhost:20128/api/cache/reasoning \
  -H "Authorization: Bearer $OMNIROUTE_TOKEN"

Payloads

See the full OpenAPI specification at GET /api/openapi/spec or docs/openapi.yaml for detailed request/response schemas.

Pertanyaan umum

Apa yang terjadi saat cache dihapus?

Entri yang tersimpan dihapus, sehingga permintaan baru dikirim lagi ke model.

Apa itu cache semantik?

Skill ini menjelaskannya sebagai cache yang mencocokkan pertanyaan yang mirip, dikendalikan oleh ambang kemiripan.

Bisakah saya melihat statistik yang rinci?

Bisa. Panggilan statistik rinci mengembalikan angka untuk semua lapisan cache.

Detail

Deskripsi asli dari pembuat

Manage the LLM response cache. View cache statistics, clear entries, configure TTL policies, and control semantic-similarity caching thresholds.

repo: cheaper-inference/OmniRoute

Popularitas

Bintang GitHub
84k
Peringkat
#1422
Lisensi
MIT
Diperbarui
2/11/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa