'Selecting a plugin fills its declared models and default base URL.'
)}
)}
</FormDescription>
</FormDescription>
<FormMessage/>
<FormMessage/>
...
@@ -2792,12 +2826,74 @@ placeholder={t(
...
@@ -2792,12 +2826,74 @@ placeholder={t(
{...field}
{...field}
/>
/>
</FormControl>
</FormControl>
{currentType!==
CHANNEL_TYPE_TASK_PLUGIN&&(
<FormDescription>
<FormDescription>
{t(
{t(
'Custom API base URL. For official channels, New API has built-in addresses. Only fill this for third-party proxy sites or special endpoints. Do not add /v1 or trailing slash.'
'Custom API base URL. For official channels, New API has built-in addresses. Only fill this for third-party proxy sites or special endpoints. Do not add /v1 or trailing slash.'
)}
)}
</FormDescription>
</FormDescription>
)}
{currentType===CHANNEL_TYPE_TASK_PLUGIN&&
!boundTaskPlugin?.baseUrl&&(
<FormDescription>
{t(
'The upstream address this plugin sends requests to. The plugin declares no default, so it must be filled in.'