mirror of
https://github.com/baserow/baserow.git
synced 2026-12-04 16:28:31 +00:00
* feat(agent): let agents open web pages with any model Co-authored-by: Mohammad Al Amin <alamin.baserow@gmail.com> * fix(agent): open web pages through Baserow's HTTP stack and report failures Failed fetches ended the whole reply, showed as invalid input, and files were stored whole. Pages now go through the integration HTTP limits, only text is opened, and a reply opens at most five. * fix(agent): leave scripts out of opened pages and bound their titles Script and style text made up most of what the model got from many pages. * fix(agent): refuse internal addresses when opening pages The model picks the URL and a page can steer it, so the setting that lets integrations reach internal services shouldn't apply. * fix(agent): read opened pages more safely A crafted page could still end the reply, files sent as text were read, and pages without a charset came out garbled. --------- Co-authored-by: Mohammad Al Amin <alamin.baserow@gmail.com>
38 lines
984 B
Vue
38 lines
984 B
Vue
<template>
|
|
<div class="agent-web-setting">
|
|
<div class="agent-web-setting__head">
|
|
<div>
|
|
<div class="agent-web-setting__title">{{ $t('agent.webFetch') }}</div>
|
|
<div class="agent-web-setting__description">
|
|
{{ $t('agent.webFetchDescription') }}
|
|
</div>
|
|
</div>
|
|
<div class="agent-web-setting__controls">
|
|
<SwitchInput
|
|
class="agent-web-setting__switch"
|
|
small
|
|
:model-value="configuration.web_fetch_enabled"
|
|
:disabled="!editable"
|
|
:aria-label="$t('agent.webFetch')"
|
|
@update:model-value="$emit('change', $event)"
|
|
/>
|
|
</div>
|
|
</div>
|
|
<Alert
|
|
v-if="configuration.web_fetch_enabled"
|
|
type="warning"
|
|
class="margin-top-1"
|
|
>
|
|
{{ $t('agent.webFetchWarning') }}
|
|
</Alert>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup>
|
|
defineProps({
|
|
configuration: { type: Object, required: true },
|
|
editable: Boolean,
|
|
})
|
|
defineEmits(['change'])
|
|
</script>
|