feat(agent): Connect AI 웹사이트 탐색 기능(read_url) 추가 및 웹 스크래핑 구현

This commit is contained in:
Jay
2026-04-16 01:23:56 +09:00
parent c0a2876685
commit 1c3db89016
46 changed files with 2286 additions and 4 deletions
+15
View File
@@ -0,0 +1,15 @@
const axios = require('axios');
async function run() {
try {
await axios.post('http://127.0.0.1:1234/v1/chat/completions', {model:'test',messages:[{role:'user',content:'a'}]}, {responseType:'stream'});
} catch(error) {
const status = error.response?.status;
console.log('STATUS:', status);
if (error.response?.data?.on) {
let b='';
error.response.data.on('data',c=>b+=c.toString());
error.response.data.on('end',()=>console.log('BODY:', b));
}
}
}
run();