dsh-model-think-level 1.1.7 → 1.1.8
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/README.md +0 -15
- package/lib/client/locales.d.ts +0 -9
- package/lib/client/ops.d.ts +0 -71
- package/lib/client/styles.d.ts +1 -1
- package/lib/client.js +2 -51
- package/lib/client.js.map +4 -4
- package/package.json +1 -1
- package/lib/client/LongCacheSection.d.ts +0 -36
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-model-think-level",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.8",
|
|
4
4
|
"description": "DSH 的第三方模型补齐思考等级:在官方 Models 页每个模型行注入 Thinking 开关和强度/模态编辑器,在输入框模型菜单加供应商→模型选择器、视觉徽章与等级行,并带搜索、拖拽排序、供应商启用开关;以及按路由接管请求头与 user-agent。",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "GaoHu1997 <gaohu9712@163.com>",
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The 高级配置 pane's second section: the route settings that are not request
|
|
3
|
-
* headers. Its row is the long-cache switch.
|
|
4
|
-
*
|
|
5
|
-
* The section exists because the field a relay rejects (`prompt_cache_key`, and
|
|
6
|
-
* `prompt_cache_retention` beside it) is built into the REQUEST BODY by the
|
|
7
|
-
* adapter, so no header can add or remove it; the switch that does is the route
|
|
8
|
-
* profile's `compat.supportsLongCacheRetention`, which the adapter's own request
|
|
9
|
-
* builder reads. That is why this section exists at all, and why it wears its own
|
|
10
|
-
* heading at the 请求头 heading's level instead of sitting inside the header
|
|
11
|
-
* editor: a reader must not have to guess whether it is another header.
|
|
12
|
-
*
|
|
13
|
-
* The switch reads the setting it is labelled with — on keeps long-lived caches
|
|
14
|
-
* — and its write is immediate, one boolean, the shape of a switch everywhere
|
|
15
|
-
* else on this page. There is no Save of its own; the header editor's Save stays
|
|
16
|
-
* the header draft's and never restates this key.
|
|
17
|
-
*
|
|
18
|
-
* @module dsh-model-think-level/LongCacheSection
|
|
19
|
-
*/
|
|
20
|
-
import type { ReactNode } from 'react';
|
|
21
|
-
import type { RemoteApi } from './types.js';
|
|
22
|
-
/** Props of {@link LongCacheSection}. */
|
|
23
|
-
export interface LongCacheSectionProps {
|
|
24
|
-
/** The provider route this card edits. */
|
|
25
|
-
route: string;
|
|
26
|
-
/** The write seam. */
|
|
27
|
-
api: RemoteApi;
|
|
28
|
-
/** Localized copy. */
|
|
29
|
-
t: (key: string, params?: Record<string, string | number>) => string;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Render the pane's long-cache section.
|
|
33
|
-
* @param props - route identity, write seam and copy.
|
|
34
|
-
* @returns the titled section.
|
|
35
|
-
*/
|
|
36
|
-
export declare function LongCacheSection({ route, api, t }: LongCacheSectionProps): ReactNode;
|