Skip to content

fix(aiNumber):To ensure proper matching with the structure returned by the AI#2185

Open
xianglongfei-8888 wants to merge 1 commit intoweb-infra-dev:mainfrom
xianglongfei-8888:xlf_dev
Open

fix(aiNumber):To ensure proper matching with the structure returned by the AI#2185
xianglongfei-8888 wants to merge 1 commit intoweb-infra-dev:mainfrom
xianglongfei-8888:xlf_dev

Conversation

@xianglongfei-8888
Copy link

@xianglongfei-8888 xianglongfei-8888 commented Mar 19, 2026

issues: #2179

Root cause: The code uses a fixed keyOfResult='result 'to read the return result, but the key name in the actual result returned by AI is Number/String/Boolean (consistent with the type parameter), resulting in the read result being undefined and throwing a "No result in query data" error, but in reality, AI has correctly extracted the value.

Fix: When setting up a query request for Number/String/Boolean types, also set the keyOfResult to the same value as the type to ensure proper matching with the structure returned by the AI.

@OneSir
Copy link

OneSir commented Mar 20, 2026

试了一下,确实解决了👍🏻

@xianglongfei-8888
Copy link
Author

试了一下,确实解决了👍🏻

@OneSir 需要管理员审核,才能合入哈

@xianglongfei-8888
Copy link
Author

xianglongfei-8888 commented Mar 20, 2026

@quanru 帮忙审核下代码,谢谢!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants