- +
+ + + + + + @@ -62,14 +69,17 @@ js::set('vendorListLang', $lang->ai->models->vendorList); + + + +
ai->models->type;?> ai->models->typeList, $modelConfig->type, "class='form-control chosen' required");?>
ai->models->vendor;?> ai->models->vendorList->{empty($modelConfig->type) ? key($lang->ai->models->typeList) : $modelConfig->type}, $currentVendor, "class='form-control chosen' required");?>
ai->models->key;?> key, "class='form-control' required");?>
ai->models->secret;?> secret, "class='form-control' required");?>
ai->models->resource;?> resource) ? '' : $modelConfig->resource, "class='form-control' required");?>
ai->models->deployment;?> deployment) ? '' : $modelConfig->deployment, "class='form-control' required");?>
ai->models->proxyType;?>
ai->models->description;?> description, "class='form-control'");?>
statusAB;?> ai->models->statusList, empty($modelConfig->status) ? 'on' : $modelConfig->status);?>
@@ -77,6 +87,7 @@ js::set('vendorListLang', $lang->ai->models->vendorList); ai->models->testConnection, 'id="testConn"', 'btn btn-secondary btn-wide');?> goback, '', 'class="btn btn-wide"');?>
@@ -96,6 +107,8 @@ $(function() { { var vendor = $(this).val(); var requiredFields = vendorList[vendor]['requiredFields']; + const vendorTip = vendorTipsLang[vendor]; + $('#vendor-tips').html(vendorTip ? vendorTip : '').toggle(!!vendorTip); $('.vendor-row').each(function() { var name = $(this).data('vendor-field');