Skip to content

feat: 支持从酒馆选择预设#200

Merged
MagicalAstrogy merged 3 commits into
betafrom
mag/preset_from_st
Apr 25, 2026
Merged

feat: 支持从酒馆选择预设#200
MagicalAstrogy merged 3 commits into
betafrom
mag/preset_from_st

Conversation

@MagicalAstrogy
Copy link
Copy Markdown
Owner

如题,不过只是排布提示词按照预设里的,实际对于部分参数可能不吻合。

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 17, 2026

🔍 PR Test Report

🧪 Test Results

✅ All tests passed!

Type Passed Failed Total
Test Suites 14 0 14
Tests 373 0 373

📊 Coverage Report

Metric Coverage Details
Lines 58.55% 1054/1800
Statements 58.27% 1078/1850
Functions 52.82% 103/195
Branches 59.56% 554/930

Coverage Thresholds

  • ✅ Lines: 58.55% (Passed, threshold: 50%)
  • ✅ Statements: 58.27% (Passed, threshold: 50%)
  • ✅ Functions: 52.82% (Passed, threshold: 50%)
  • ✅ Branches: 59.56% (Passed, threshold: 50%)

Generated at 2026-04-25T10:26:19.765Z

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e929b4cdec

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/function/request/extra_model_request_override.ts
Comment thread src/panel/update/Prompt.vue Outdated
@MagicalAstrogy
Copy link
Copy Markdown
Owner Author

@codex reivew
使用中文
一次找出所有问题。
使用 submodule 拉取 slash-runner 相关依赖

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e929b4cdec

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/function/update/extra_model_preset.ts Outdated
Comment thread src/panel/update/Prompt.vue Outdated
Comment thread src/function/update/extra_model_preset.ts Outdated
@MagicalAstrogy
Copy link
Copy Markdown
Owner Author

@codex reivew
使用中文
一次找出所有问题。
使用 submodule 拉取 slash-runner 相关依赖

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4de0fd269e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

}

if (store.settings.额外模型解析配置.破限方案 === '使用其他预设') {
const preset = getExtraModelPreset(store.settings.额外模型解析配置.其他预设名称);
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 在读取目标预设前校验预设名有效性

这里在“使用其他预设”模式下直接调用 getExtraModelPreset,当 其他预设名称 为空或对应预设已被删除时会抛异常,导致额外模型解析在重试策略下反复失败而不会回退;这个场景在无可用预设时很容易出现(面板会把该字段置空)。建议在调用前做存在性校验并给出可见提示或降级策略。

Useful? React with 👍 / 👎.

import HelpIcon from '../component/HelpIcon.vue';

const store = useDataStore();
const available_preset_names = computed(() => getAvailableExtraModelPresetNames());
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P3 Badge 让预设列表使用可更新的数据源

available_preset_names 由一个没有响应式依赖的 computed 生成,实际会在挂载后变成快照值;后续用户新增/删除 preset 时,watch(available_preset_names, ...) 不会再触发,其他预设名称 可能保持失效值并在请求时触发读取预设失败。建议改为由可触发更新的事件/状态驱动,或在请求前实时重新拉取并校验可用预设名。

Useful? React with 👍 / 👎.

@MagicalAstrogy MagicalAstrogy merged commit af7239d into beta Apr 25, 2026
1 check passed
@StageDog StageDog deleted the mag/preset_from_st branch May 4, 2026 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant