refactor(attachment): 求解器留在 llm-deepseek,存储层只接收目标尺寸
ImageRequestPolicy 改为 ImageRequestTarget,只含目标宽、高和字节目标;dsh-attachment 删除 token-grid 投影联合和 tokenGridProjection,只保留提供方无关的 requestImageDimensions 与 longEdgeDimensions。v41 求解器回到 llm-deepseek 的 image-tokens.ts,新增 deepSeekRequestImageDimensions,resolveRequestImageTarget 为每张图算出目标并加 4096 单边上限;pi-ai 路由按自身像素预算推导目标。 按 review 意见修正:v41 计价 Note 里已删除常量的过期句子就地改写;ProjectedDimensions 登记到 attachment 子系统页与 type-equiv 清单;Note 区分发送尺寸与提供方补齐后的网格;短边取整的措辞改为「按路由预测」。
This commit is contained in:
1 parent
e17a736cc3
commit
ba30b73f7b
52 files changed
+463
-552
No files matched your search
@@ -378,7 +378,8 @@ export const LINK_MAP: Readonly<Record<string, string>> = {
|
||||
SaveFileStreamAttachment: 'attachment.md',
|
||||
ImageAttachmentAccess: 'llm-streaming.md',
|
||||
ImageAttachmentRef: 'attachment.md',
|
||||
ImageRequestPolicy: 'attachment.md',
|
||||
ImageRequestTarget: 'attachment.md',
|
||||
ProjectedDimensions: 'attachment.md',
|
||||
PromptContentPart: 'attachment.md',
|
||||
RequestImageAttachment: 'attachment.md',
|
||||
SaveImageAttachment: 'attachment.md',
|
||||
|
||||
@@ -1003,18 +1003,13 @@
|
||||
},
|
||||
{
|
||||
"doc": "docs/subsystems/attachment.md",
|
||||
"symbol": "ImageRequestProjection",
|
||||
"symbol": "ImageRequestTarget",
|
||||
"source": "packages/attachment/attachment/src/types.ts"
|
||||
},
|
||||
{
|
||||
"doc": "docs/subsystems/attachment.md",
|
||||
"symbol": "TokenGridProjection",
|
||||
"source": "packages/attachment/attachment/src/types.ts"
|
||||
},
|
||||
{
|
||||
"doc": "docs/subsystems/attachment.md",
|
||||
"symbol": "ImageRequestPolicy",
|
||||
"source": "packages/attachment/attachment/src/types.ts"
|
||||
"symbol": "ProjectedDimensions",
|
||||
"source": "packages/attachment/attachment/src/request-projection.ts"
|
||||
},
|
||||
{
|
||||
"doc": "docs/subsystems/attachment.md",
|
||||
|
||||
Reference in new issue
Block a user