@quilltap/plugin-types 2.5.0 → 2.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/llm/index.d.mts +13 -0
- package/dist/llm/index.d.ts +13 -0
- package/package.json +1 -1
package/dist/llm/index.d.mts
CHANGED
|
@@ -332,6 +332,19 @@ interface LLMParams {
|
|
|
332
332
|
profileParameters?: Record<string, unknown>;
|
|
333
333
|
/** Previous response ID for conversation chaining (OpenAI Responses API) */
|
|
334
334
|
previousResponseId?: string;
|
|
335
|
+
/**
|
|
336
|
+
* Per-character cache identifier. Quilltap builds this from the
|
|
337
|
+
* speaking character's ID so the stable persona block (manifesto /
|
|
338
|
+
* description / personality) becomes the actual cache prefix. Each
|
|
339
|
+
* provider decides how to apply it:
|
|
340
|
+
* - OpenAI / Grok use it as `prompt_cache_key` (sticky routing hint).
|
|
341
|
+
* - DeepSeek uses it as `user_id` (KV-cache isolation namespace).
|
|
342
|
+
* - OpenAI-compatible / Z.AI / OpenRouter forward it as `user`.
|
|
343
|
+
* - Anthropic ignores it (content-hashed `cache_control` breakpoints).
|
|
344
|
+
* - Ollama / Curl ignore it.
|
|
345
|
+
* Undefined when no character is active (e.g. user-only chats, titling).
|
|
346
|
+
*/
|
|
347
|
+
cacheKey?: string;
|
|
335
348
|
}
|
|
336
349
|
/**
|
|
337
350
|
* Response from a text completion
|
package/dist/llm/index.d.ts
CHANGED
|
@@ -332,6 +332,19 @@ interface LLMParams {
|
|
|
332
332
|
profileParameters?: Record<string, unknown>;
|
|
333
333
|
/** Previous response ID for conversation chaining (OpenAI Responses API) */
|
|
334
334
|
previousResponseId?: string;
|
|
335
|
+
/**
|
|
336
|
+
* Per-character cache identifier. Quilltap builds this from the
|
|
337
|
+
* speaking character's ID so the stable persona block (manifesto /
|
|
338
|
+
* description / personality) becomes the actual cache prefix. Each
|
|
339
|
+
* provider decides how to apply it:
|
|
340
|
+
* - OpenAI / Grok use it as `prompt_cache_key` (sticky routing hint).
|
|
341
|
+
* - DeepSeek uses it as `user_id` (KV-cache isolation namespace).
|
|
342
|
+
* - OpenAI-compatible / Z.AI / OpenRouter forward it as `user`.
|
|
343
|
+
* - Anthropic ignores it (content-hashed `cache_control` breakpoints).
|
|
344
|
+
* - Ollama / Curl ignore it.
|
|
345
|
+
* Undefined when no character is active (e.g. user-only chats, titling).
|
|
346
|
+
*/
|
|
347
|
+
cacheKey?: string;
|
|
335
348
|
}
|
|
336
349
|
/**
|
|
337
350
|
* Response from a text completion
|