标签: 人工智能

ValueError: substring not found

ValueError: substring not found

此报错发生在 Transformers 的 StopStringCriteria 初始化时,当分词器词表无法对内部校验探针(ASCII 前缀)完成解码往返时,未受保护的 str.index 调用会直接抛出裸的 ValueError: substring not found ,掩盖了原本设计的诊断信息

Claude code shows API error 403 for any cloud model

Claude code shows API error 403 for any cloud model

Claude Code 在调用 Ollama 的云端模型时返回 HTTP 403 权限错误,是因为该模型需要 Pro 或 Max 付费订阅,且当前 Ollama 界面未明确标注哪些云端模型免费、哪些需要订阅。优先在 Ollama 官网定价页确认模型订阅要求,并尝试换用免费云端模型或本地模型。

A US judge blocks the Pentagon from blacklisting Anthropic, ruling that its designation as a supply-chain risk was “illegal and baseless” (Jack Queen/Reuters)

A US judge blocks the Pentagon from blacklisting Anthropic, ruling that its designation as a supply-chain risk was "illegal and baseless" (Jack Queen/Reuters)

美国联邦法官裁定,国防部将 AI 公司 Anthropic 列入供应链风险黑名单的行为“非法且毫无依据”,并予以阻止。这一裁决不仅为 Anthropic 解除了潜在的业务限制,也为 AI 公司在政府合同中免受“安全黑名单”影响提供了重要司法先例。