Skip to content

修复05年7月25日aitudio前端更新导致的程序崩#224

Merged
CJackHwang merged 1 commit intoCJackHwang:mainfrom
OXERIS:修复05年7月25日aitudio前端更新导致的程序崩溃
Jul 25, 2025

Hidden character warning

The head ref may contain hidden characters: "\u4fee\u590d05\u5e747\u670825\u65e5aitudio\u524d\u7aef\u66f4\u65b0\u5bfc\u81f4\u7684\u7a0b\u5e8f\u5d29\u6e83"
Merged

修复05年7月25日aitudio前端更新导致的程序崩#224
CJackHwang merged 1 commit intoCJackHwang:mainfrom
OXERIS:修复05年7月25日aitudio前端更新导致的程序崩溃

Conversation

@OXERIS
Copy link
Copy Markdown
Contributor

@OXERIS OXERIS commented Jul 25, 2025

描述:
本次 PR 修复了三个与 model_name_locator 相关的选择器问题,提升了代码的健壮性和可靠性。

修复内容:

  1. 修改 browser_utils/initialization.py 文件:
    • 定位代码: 找到定义 model_name_locator 变量的代码行(约在第 419 行)。
    • 修改前:
    • model_name_locator = page.locator('mat-select[data-test-ms-model-selector] div.model-option-content span.gmat-body-medium')
    • 修改后:
    • model_name_locator = page.locator('mat-select[data-test-ms-model-selector] .model-option-content span')
  2. 修改 browser_utils/model_management.py 文件(局部更新):
    • 定位代码: 找到 _set_model_from_page_display 函数(约在第 530 行)。
    • 修改前:
    • model_name_locator = page.locator('mat-select[data-test-ms-model-selector] div.model-option-content span.gmat-body-medium')
    • 修改后:
    • model_name_locator = page.locator('mat-select[data-test-ms-model-selector] .model-option-content span')
  3. 修改 browser_utils/model_management.py 文件(全局替换):
    • 操作: 搜索所有以下字符串:
    • 'mat-select[data-test-ms-model-selector] div.model-option-content span.gmat-body-medium'
    • 替换为:
    • 'mat-select[data-test-ms-model-selector] .model-option-content span'

@OXERIS OXERIS changed the base branch from main to dev July 25, 2025 09:31
@CJackHwang CJackHwang changed the base branch from dev to main July 25, 2025 09:38
@CJackHwang CJackHwang merged commit fbca4ac into CJackHwang:main Jul 25, 2025
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.

2 participants