3 ms·
You get one free question answered without a login. You can dismiss the login prompt which appears after submitting your question and use copy/paste with keyboa
by dhx 2y ago
You get one free question answered without a login. You can dismiss the login prompt which appears after submitting your question and use copy/paste with keyboard shortcuts or browser debug tools to retrieve the full answer (including the part hidden with CSS rules). Either use XPath of '//div[@id="answer_text_id"]//text()' or copy the text/eventstream response for the API call to https://yiyan.baidu.com/eb/chat/conversation/v2 https://yiyan.baidu.com/eb/chat/conversation/v2 once the SSE session has closed.[1] Clear cookies and site data and you'll get a new session and can keep going.
It can take about 20 seconds to return all tokens so it appears likely the login prompt is there to minimise resource consumption.
[1] https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events https://developer.mozilla.org/en-US/docs/Web/API/Server-sent...