註冊並分享邀請連結,可獲得影片播放與邀請獎勵。

檢索結果 strict
strict 貼吧
一個關鍵字就是一個貼吧,路徑全站唯一。
建立貼吧
用戶
未找到
包含 strict 的搜尋結果
#重要# PHP严重漏洞 PHP2Shell,修复版本预计今晚发布 如果你还在使用8.1及以前,包括自5.4起的所有版本的PHP,立刻升级到8.2以上的版本,因为更老版本可能没有补丁 可通过修改PHP配置文件php.ini,添加或调整以下配置进行临时安全加固:session.upload_progress.enabled =0 session.use strict mode=1 修改后需重启对应PHP服务,并检查业务是否正常。最终请以PHP官方 发布的安全公告及修复方案为准。
顯示更多
据 Bitcoin News 报道,美国阿拉斯加州参议院法案 SB 249 将于 2026 年 10 月 1 日正式生效,该法案对加密货币 ATM 实施了严苛的监管要求。法案规定,加密货币 ATM 运营商必须获得货币传送许可,每台设备需在州政府注册;交易限额设定为每人每天 1000 美元及 30 天内 1 万美元,手续费上限为 10%。此外,法案强制要求运营商在机身上显示醒目的防欺诈警告,且须在交易前通过严格的 KYC 程序采集用户信息,同时利用区块链分析技术筛查钱包地址。法案还包含“严格责任(Strict Liability)”条款,即若运营商未能执行验证程序导致欺诈发生,将承担直接责任。
顯示更多
我尼玛可以哟,同样跑 Agent 任务成本砍到 1/9——OpenSquilla,6134 个 Star!0.5.0 Preview 4,微内核 AI Agent。 一句话:本地模型路由器把每一轮对话分给“够用且最便宜”的模型,同预算换更高智能密度。 核心不是又一个聊天壳,而是把 Agent 运行层做成了省 token 的 harness: (1)SquillaRouter 本地路由——LightGBM + ONNX 分类器在本地给每轮打分,按 C0-C3 层级选模型,路由判断不把 prompt 送出机器。 (2)自适应推理和 Prompt——简单任务轻量处理,复杂任务才开扩展推理和完整系统提示,尽量不把 token 浪费在废话上。 (3)20+ LLM 提供商——OpenAI、Anthropic、OpenRouter、Ollama、DeepSeek、Gemini、Qwen/DashScope 等都能接,主备选择不动代码和配置结构。 (4)技能按需加载 + MCP——15 个内置技能用到才加载;既能当 MCP client,也能跑成 MCP server。 (5)本地持久记忆——MEMORY.md + 日期 Markdown 笔记,SQLite 全文搜索和 sqlite-vec 语义召回,embedding 可走本地 ONNX。 (6)分层安全沙箱——Standard/Strict/Locked 三档权限矩阵,Linux 用 Bubblewrap,macOS 走 Seatbelt,敏感操作可接人工审批。 它把 Web UI、CLI、聊天频道都接到同一个 TurnRunner,工具分发、重试、决策日志行为一致;还有会话/子代理/定时任务、成本统计,适合长期跑 Agent 工作流。 官方 PinchBench 1.2.1 的 25 个任务里,OpenSquilla 平均分 0.9251、总成本 ;对照是、6.233。分数几乎贴住,成本差了一个数量级,这就很牛逼了。 支持 Windows、macOS、Linux;可桌面安装、终端安装,也能从源码跑。适合想用 Agent 干活、但不想每轮都硬烧顶配模型预算的兄弟。 好东西转给需要的兄弟。🚀 #AIAgent# #开源工具# #老杨啊分享#
顯示更多
推荐这篇文章,Flask 作者 Armin Ronacher 追踪 Pi 的 bug 发现了一个让人不安的事实:新版 Claude 模型(Opus 4.8、Sonnet 5)的工具调用在退化——不是变好了,是变差了。而且他找到了根因:RL 后训练过度适配了 Claude Code 自己的工具 schema,导致替代工具 schema 越来越"离群"。这是所有自己做 agent harness 的人都需要读的文章。 更好的模型,更差的工具调用 一个奇怪的 Pi issue 让我在过去两天掉进了一个深坑。简短版:新版 Claude 模型有时会在调用 Pi 的 edit 工具时,给嵌套的 edits[] 数组加上多余的、编造出来的字段。不是 Haiku 或什么小模型——是 Opus 4.8。编辑本身通常是正确的,但参数不匹配 schema,因为模型发明了不存在的 keys,Pi 拒绝工具调用并要求重试。 这不完全意外——模型偶尔会发出格式不正确的工具调用,特别小的模型。但让我意外的是,这在 Anthropic 的新模型中变得更糟了。Opus 4.8 和 Sonnet 5 都表现出这个问题,而之前的旧模型不这样。换句话说,这个模型家族的 SOTA 模型在某个特定工具 schema 上不如它们的旧兄弟。 工具调用就是文本 如果你没有花太多时间看 LLM 工具调用的内部机制,需要理解的重要一点是:工具调用不是魔法。模型收到一份转录文本、一个系统 prompt 和一个可用工具列表。服务器把这些搅成一个带有特殊标记 token 的大 prompt。因为模型用那个格式的示例训练和强化过,它在生成过程中某一点会发出被 API 或客户端解释为"用这些参数调用这个工具"的东西。 细节是:嵌套数组里面的 JSON 是序列化在 XML 标签里面的。基本顶层字符串参数在线显示,而对象数组通过 JSON 序列化实现。这很重要,因为当模型在一个几百 token 的转义字符串后面要决定 } 还是 ,"..." 时,这正是最高熵的点。 失败 Pi 的 edit 工具支持在一个调用中做多个精确字符串替换,所以参数里有一个 edits 数组。在失败的案例里,模型产生了这样的条目:额外加了 requireUnique: true、oldText2、newText2。反复测试中我看到了一整批编造出来的尾随 keys:type、id、kind、unique、requireUnique、matchCase、in_file、forceMatchCount、children、notes、cost,甚至一个 event.0.additionalProperties 在里面。 最烦人的是,实际 oldText 和 newText 负载在我检查过的无效调用里是字节级正确的。模型确实产生了正确的调用,然后在对象末尾加了垃圾。 这个失败也高度上下文依赖。全新的单轮"编辑这个文件"prompt 完全不会复现。有 agent 历史——模型读过文件、诊断了问题、然后写了多行编辑——就能复现。而且不是所有转录都会这样。打开 strict 工具调用在我的运行中完全消除了问题。 为什么在变差 我最强的假设是这不是随机退化,而是训练 artifact。 旧 Anthropic 模型训练时,它们训练了一些工具,但那个训练还没有 Claude Code 这样用户交付的 harness 作为明显目标。现代 Anthropic 模型大概率不同,因为它们的后训练包括了 Claude Code 或一个看起来非常相似的 harness。模型学到了在那个环境下什么样的工具调用是成功的。它也会学到那个环境容忍什么错误。 Claude Code 自己的工具相对扁平。普通 edit 工具不是 Pi 的嵌套 edits[] 形状,更接近 file_path、old_string、new_string 和一个可选 flag(replace_all)。看 Claude Code 的客户端非常有启发:它包含格式错误工具用的重试路径、参数别名、类型强制转换、Unicode 修复和未知 key 过滤。换句话说,Anthropic 自己的客户端似乎期望和接受相当数量的 slop,并修复它,大部分是静默的。 如果强化学习发生在这样的 harness 里,或一个模拟里,那么稍微格式不正确的工具调用仍然可以完成任务并得到奖励。harness 完全吸收了错误,几乎不存在惩罚"发明一个别名"、"加一个多余字段"或"用一个相近的参数名"的梯度。 更糟的是,模型可能变得极强地适应了标准 Claude Code edit 工具的形状。一个不同的 harness 可以提供语义相同但 schema 不同的工具。这样的工具会越来越离群。训练得更好的模型可能实际上更难对付你,因为它的先验更强。 这不算太意外,但这是一个变迁。Opus 4.5 发布时,它适应其他 edit 工具的能力异常好。我当时相当确信我们在一条好路上——模型只要指令好,更可能适应任何种类的工具形状。现在我有些担心我们在哪条路上。替代工具 schema 可能不只是不熟悉。它们可能被优化特定、宽容的工具生态的后训练隐式惩罚。而且那个生态没有文档。 Slop Harness Claude Code 是闭源的,但我们可以看压缩后的代码。老实说,它对输入数据非常宽容。 首先,Claude Code 检查模型可见文本里是否有泄露的 Claude# #Agent# #工具调用#
顯示更多
0
21
188
42
轉發到社區
《吻我之前,先把灯关了》 "Turn Off the Lights Before You Kiss Me" 据专家研究分析,恐怖片和爱情动作片,好莱坞惊险片都能刺激大脑分泌多巴胺,我现在把它们都放在一起了,那是不是应该双倍快乐来了。 According to expert research and analysis, horror movies, romantic action films, and Hollywood thrillers can all stimulate the brain to release dopamine. Since I’ve combined them all together, does that mean I’m in for a double dose of happiness? grok imagine prompt: "Turn Off the Lights Before You Kiss Me" 15 seconds, 9:16 vertical format, first-person perspective, recorded on a smartphone, single continuous take. [Realistic Cinematography] The footage is captured entirely by the rear-facing camera of the smartphone held by the male protagonist; no other cameras are involved. The male protagonist holds the phone in his right hand, using the primary (1×) rear lens—providing a field of view equivalent to approximately 26mm—at 1080p resolution and 30fps. The device is positioned between his chest and chin (at a height of roughly 1.45 meters), aimed toward a woman standing in the bathroom doorway. His left hand occasionally enters the frame to operate the light switch. The smartphone itself—its body, back panel, camera module, screen, or flash—is never visible in the shot. Only the light cast by the phone onto the subject, her clothing, and the walls can be seen. There are no mirrors present; this is not a mirror-based selfie. The footage retains the raw, authentic texture of smartphone video—no beauty filters, color grading, or cinematic effects. Skin details such as pores, fine beads of sweat, stray hairs, and natural skin-tone variations are visible. There is slight digital noise in the shadows, and brief motion blur occurs during rapid hand movements or moments of physical instability. Subtle camera shake stems from the holder’s breathing and wrist movements. Changes in proximity are achieved through actual physical steps or the subject pulling the holder closer; there is no digital zooming, automated panning, reverse-angle cutting, or slow motion. The focus remains primarily on the woman’s face, with only momentary hesitation when the distance shifts abruptly—there is no persistent out-of-focus effect. [Characters and Attire] The woman in the doorway (@80130fc6-f744-4f61-9faf-f630a1eb8638) is 28 years old. Her appearance—including her black hair styled in an updo, purple floral hair accessory, earrings, long-sleeved Japanese-style (wafuku) garment in purple (@d7529a1b-8cdb-41e5-816e-c59aa4051803), and dark-colored *obi* (sash)—is consistent with the video uploaded by the user. Her clothing remains intact; the neckline stays in place, and she does not scratch her own chest or tug at her garments. Leaning slightly against the doorframe, she keeps her shoulders relaxed and lowered, her neck elongated, and her legs positioned one in front of the other—creating a natural, subtle S-curve in her posture. She gazes toward the male protagonist with half-lidded eyes and a faint, inviting smile, as if beckoning him closer. From the very beginning, her right hand holds a small pinch of fabric from the male protagonist’s left cuff. This point of contact—her right hand gripping his left cuff—is situated in the lower-left portion of the frame and must remain visible. Because she is only holding the fabric rather than clamping down on his wrist, he retains the freedom to lift his left hand and operate the light switch. Initially, her left hand is concealed between her body and the doorframe. The grayish-white fingers that appear later belong to this same hand; the creature possesses only two hands throughout the entire sequence. The real girlfriend is located in the hallway behind the male protagonist. She is present only as a voice calling out from off-screen; she is never shown on camera, and no second female face appears. 【Environment and Space】 The scene takes place at the entrance to a bathroom in an old apartment building late at night. The setting—featuring aged off-white tiles, a worn wooden doorframe, a standard wall-mounted light switch, and a towel hanging inside the bathroom—conveys the lived-in, weathered feel of an old residence, rather than a ruin. The woman is positioned slightly to the right of the frame’s center, with the open bathroom door behind her. The light switch is located on the wall to the left, approximately thirty centimeters from the male protagonist’s left hand. It is visible from the start and does not suddenly appear later. Behind the male protagonist lies a hallway. The bathroom door remains open inward; the camera angle stays consistent throughout, the door does not move on its own, and the room’s layout remains unchanged. At the start, the woman’s face is about sixty centimeters from the camera. After she gives a gentle tug on his cuff, the male protagonist shifts forward slightly, reducing the distance to approximately forty-five centimeters. The distance closes further only during the final dragging motion. 【Ambient Lighting】 At the beginning, a warm-white overhead light in the bathroom is on, illuminating the woman’s head, shoulders, and the doorway, while the hallway remains dim. The LED flash on the back of the smartphone is illuminated from the very first frame; it remains on and in the same position throughout the entire 15-second duration. Up close, the face is illuminated by the harsh, direct light of a standard mobile phone; small shadows form beside the nose and under the chin, and there are localized highlights on the fabric of the clothing—no artificial "beauty" fill lighting is applied. The only light the male lead turns off is the overhead bathroom light. Once the overhead light is extinguished, the bathroom background remains dim and does not brighten on its own. The phone’s light continues to illuminate her face and the hand gripping the sleeve cuff. The camera’s auto-exposure adjusts only slightly, failing to brighten the dark bathroom to a daylight-like state. When the "mask" (the outer layer of the face) is peeled back, it is illuminated by the same mobile phone light as the rest of the face. The space deep behind the shell remains dark, and the exposed eyeball shows only natural, subtle reflections—it does not emit its own light. [The "False Face" Effect] The horror stems from a thin, pliable, artificial layer being peeled back from within—it is not a case of natural skin being torn or a mouth stretching into an impossible, elongated shape. A grayish-white hand—with only two or three fingertips visible—emerges from the corner of her mouth, hooks onto the lower edge of the "mask," and peels half of the face upward and to the side. The "mask" has a distinct thickness and flexibility; the cheek and part of the area beside the nose fold back, rather than stretching into long, tubular, funnel-like, or tongue-like shapes. Behind the peeled-back section lies a deep, dark cavity containing a normal-sized human eye, which turns to look directly at the camera. The other half of the woman’s face remains intact, establishing the premise that there is an artificial layer on the outside, with something else concealed beneath it. There is no blood, gore, exposed muscle, black ooze, or liquid-like melting effect. The grayish hand does not reach in from off-screen; its fingertips must first emerge from within the corner of the mouth. [Strict 15-Second Timeline] 0–4 Seconds | Gripping the sleeve, an invitation to draw closer. The woman leans sideways against the doorframe, looking first into the male lead’s eyes, then glancing briefly toward the light switch on the left. With her right hand, she grasps the male lead’s left sleeve cuff—positioned at the bottom-left of the frame—and gives it a gentle tug toward herself. The fabric of the cuff pulls taut, prompting the male lead to take a small step forward; the camera moves in tandem with his approach. She lifts her chin slightly and says in a low voice: “The lights are too bright.” Her tone is intimate, with a suppressed smile playing at the corners of her mouth. There is no sign of a monstrous visage, nor does she glance toward her own mouth beforehand. Her right hand continues to hold the same spot on his sleeve; she does not shift her grip to his lapel. 4–7 seconds | Flipping the switch; the background darkens The male protagonist reaches out with his left hand toward a light switch already visible on the left side of the frame. She keeps her grip on his left sleeve, causing her right arm to extend naturally as he moves—she neither lets go nor suffers any "clipping" (graphical glitching). His fingertips press the switch, producing a distinct *click*. The bathroom overhead light goes out, and the tiles, towels, and the space behind the woman grow noticeably darker. Her face remains illuminated by the fill light from a mobile phone. The male protagonist’s left hand pulls away from the switch and returns to the space between them. The camera tilts slightly with the movement, then steadies. 7–9 seconds | A warning from behind From about two meters behind the camera, the man’s actual girlfriend calls out urgently, in an identical tone: “Don’t turn off the light!” The woman in front of him says nothing; her lip movements do not correspond to this warning. As the male protagonist begins to turn, the camera shifts slightly to the side—but the hand gripping his sleeve suddenly tightens, holding him in place. Her smile vanishes. Her eyes glance past the camera toward the space behind the man, then return to the lens. Her knuckles whiten as she grips the sleeve, causing deeper creases to form in the fabric. 9–12 seconds | Half of her face is peeled back from within Two or three grayish-white fingertips emerge from the inner corner of her mouth. The fingertips hook onto the lower edge of the "shell" of her face, slowly peeling it upward and outward. The corner of her mouth and her cheek—forming a single, thin, pliable layer—fold back together; the lips do not stretch or elongate independently. Half of the artificial face is lifted away, revealing an eye in the darkness beneath that shifts to look directly at the camera. The intact half of her face remains visible alongside the eye revealed from within. For a brief moment, the camera steadies, allowing at least half a second to take in the details: Fingers emerge from within the face; the "shell" of the face begins to fold back, revealing another eye underneath. The woman’s right hand maintains a firm grip on the man’s left cuff—she cannot let go, even as she peels back the face. The only sounds are the dry, grating friction of the mask and the man’s sudden, sharp intake of breath. 12–15 seconds | The grip shifts into a forceful tug. The man immediately grabs the woman’s right wrist—the one holding his cuff—and tries to pry it away. The point of contact is clearly visible; he does not reach for the grey, peeling fingers. The creature’s right arm suddenly retracts toward the bathroom, yanking the cuff hard. The sequence must be clear: The cuff goes taut → the man’s left arm is pulled straight → his body stumbles forward → the camera (held in his right hand) is dragged closer. The camera moves from about 45 centimeters away to roughly 15 centimeters, accompanied by a sudden dip and tilt—this is not a smooth, controlled zoom. The partially peeled-back face, the unblinking eye beneath, and the greyish-white fingers now dominate the frame. The other half of the face remains "normal," preserving its original appearance. In the final half-second, the man collides with the wooden doorframe, producing a dull thud. The camera jerks to the side; the edge of the facial shell sweeps across the lens, partially obscuring the view. The recording ends abruptly while the struggle is still underway. No fade to black, no additional dialogue, and no new creatures appear. [Ambient Audio] Captured via a mobile phone microphone: close-range speech, the friction of fabric at the cuff, the sound of a light switch, the hum of a bathroom exhaust fan, the distant ambient noise of the city, heavy breathing, and the final impact against the doorframe. The exhaust fan continues to run independently; it does not stop when the overhead light is switched off. The background sounds maintain a sense of spatial distance—they are not suddenly muted for the sake of a "jump scare." The opening line, "The light is too bright," comes from the woman in front of him. The mid-sequence line, "Don't turn off the light," clearly originates from behind the man; the woman in front does not move her lips. There is no further dialogue—no sinister laughter, voice-over narration, heartbeat sound effects, or pre-recorded horror audio cues. [Mandatory Continuity] The only camera is the mobile phone through which the audience is viewing the scene; the phone itself is never visible within the frame, nor is there any additional camera operator. The male protagonist holds the phone in his right hand; he uses his left hand to flip the light switch, then immediately grabs the monster’s right wrist. The monster’s right hand remains firmly gripping the same spot on the male protagonist’s left cuff; its left hand lifts a portion of the "false face" from underneath. Do not generate a third hand, swap left and right hands, or have the monster’s hand shift its grip from the cuff to the female protagonist’s own clothing. Once the bathroom light is turned off, it remains off; the mobile phone’s light source (fill light) stays on. The positions of the door and the light switch remain fixed. Changes in distance must be achieved through physical movement (stepping or dragging); do not use digital zoom. The "false face" should be lifted, not stretched like rubber; do not generate long tongues, tubular mouths, an elongated jaw, or a melting face.
顯示更多