小Q
小Q
1.复现:如果systemListWord列表为空,会报错TypeError: 'NoneType' object is not iterable 2.完善:在for循环前增加为空判断,如果为None 那么直接返回False def judgeEqualListWord(recvWord, systemListWord): """ 判断接收消息在触发关键字列表中则返回True 接收消息 in ['触发关键字列表'] :param recvWord: 接收消息 :param systemListWord: 触发关键字列表 :return: """ if systemListWord is None: return False...
经过查找为组件内 wd-upload__mask属性 ,如果删除,就可以预览
Fix branch: https://github.com/qq01-hub/magpie/tree/fix/systemone-google-audio (`59c6198b4`) Compare: https://github.com/yetone/magpie/compare/main...qq01-hub:magpie:fix/systemone-google-audio Changes: - Extend `googleAsk` in `internal/provider/decide_wire.go` to translate a System One request's `audio` array (base64 `data:` URLs or URIs) into Google Decisions API `{"type":"audio",...}`...
Fix branch: https://github.com/qq01-hub/magpie/tree/fix/restricted-4xx-failover (`dec5bb5d3`) Root cause: ZCode's newer 405 (code 3012) suspension message no longer contains `"request has been blocked"`, so `provider.EdgeBlocked` returns `false`, and `retryable()` did not check `restrictedSaid()`....
Fix branch: https://github.com/qq01-hub/magpie/tree/fix/google-decision-account-serves (`d33a119be`) Compare: https://github.com/yetone/magpie/compare/main...qq01-hub:magpie:fix/google-decision-account-serves Root cause: `Provider.AccountServes` (`internal/provider/account_models.go`) checked per-key `AccountModels` without exempting decision-only models that `Available()` omits on conversation providers (Google's `gemini-decision-1`, as well as Bailian's `decision-model-preview`,...
Fix branch: https://github.com/qq01-hub/magpie/tree/fix/memory-digest-omit-why (`d7c663182`) Compare: https://github.com/yetone/magpie/compare/main...qq01-hub:magpie:fix/memory-digest-omit-why Changes: - `internal/memory` (`memory.go`, `store.go`, `digest.go`): persist `digestNoWhy` in `meta.json`, apply it in `render` before counting line lengths against the digest budget (so omitting...
Fix branch: https://github.com/qq01-hub/magpie/tree/fix/codex-backend-service-tier (`03defe188`) Compare: https://github.com/yetone/magpie/compare/main...qq01-hub:magpie:fix/codex-backend-service-tier Root cause: On the native `/backend-api/codex` route, requests relayed through `codexUpstreamOn` to `provider.CodexBase` bypassed `provider.codexBody` and forwarded client-written `service_tier` values such as `"flex"` unchanged,...
Fix branch: https://github.com/qq01-hub/magpie/tree/fix/windows-file-url-plugin-tags (`52ffe3552`) Compare: https://github.com/yetone/magpie/compare/main...qq01-hub:magpie:fix/windows-file-url-plugin-tags Root cause: `gitRepo` (`internal/library/skillgit_test.go:113-117`) returns `file:///C:/...` on Windows. In `TestPluginUpgradesToNewerTag` (`internal/library/plugin_tags_test.go:24`), `strings.TrimPrefix(addr, "file://")` left `/C:/...`, which `filepath.FromSlash` converted into `\C:\...` and `git --git-dir` rejected...
Fix branch: https://github.com/qq01-hub/magpie/tree/fix/codex-usage-early-model-backfill (`1ac8b5a8a`) Compare: https://github.com/yetone/magpie/compare/main...qq01-hub:magpie:fix/codex-usage-early-model-backfill Root cause: 1. When a Codex subagent (e.g. `guardian` after `compacted`) or orphan fork writes `token_count` / compacted snapshots before its first `turn_context` or...
Fix branch: https://github.com/qq01-hub/magpie/tree/fix/foreign-seal-agent-message (`1bb4b10f6`) Compare: https://github.com/yetone/magpie/compare/main...qq01-hub:magpie:fix/foreign-seal-agent-message Root cause: When a routing group mixes a third-party Responses provider and a Codex account, `sealedReader` reports the group as readable, so pre-route `withoutSealedMessages`...