AION-1 / outputs /real_web_learner /tests /fetch_api_example.txt
VoidWalkercero's picture
Upload AION unified hybrid assistant with local eval results
a1a7070 verified
## Learned web reasoning
- Read request with character n-grams and web-development fragments.
- Top intents: fetch_api=1.00, full_page=0.00, counter=0.00, tabs=0.00
- Selected intent: fetch_api
## Answer
```html
<button id="load">Load user</button><pre id="out"></pre>
<script>
document.querySelector('#load').onclick=async()=>{
const res=await fetch('https://jsonplaceholder.typicode.com/users/1');
const data=await res.json();
document.querySelector('#out').textContent=JSON.stringify(data,null,2);
};
</script>
```