You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.6 KiB
HTML
47 lines
1.6 KiB
HTML
<script>
|
|
|
|
$(document).ready(()=>{
|
|
var _aiTech = []
|
|
$('.labels').children().each((_index)=>{
|
|
var _data = $('.labels').children()[_index]._data
|
|
if(_data.AI){
|
|
_aiTech.push(_data.provider)
|
|
}
|
|
})
|
|
_aiTech = jx.utils.unique(_aiTech)
|
|
$('.ai-tech').html( _aiTech.join(' , '))
|
|
$('.ai-setup .ai-button').on('click',ai.toggle)
|
|
if (sessionStorage.AI == "0"){
|
|
ai.disable()
|
|
}else{
|
|
ai.enable()
|
|
}
|
|
|
|
})
|
|
</script>
|
|
<div class="studio-dialog ai-setup">
|
|
<p style="line-height:1.5; font-weight: lighter;">
|
|
Setup system wide AI capability to translate a prompt to an SQL query. This feature is supported for the following technologies :
|
|
<ul>
|
|
<div style="margin:4px;"><i class="fa-solid fa-minus"></i> <span class="ai-tech bold"></span></div>
|
|
<div style="margin:4px;"><i class="fa-solid fa-minus"></i> <span> Ollama & AzureOpenAI</span></div>
|
|
</ul>
|
|
|
|
<ul>
|
|
<br>
|
|
<p>
|
|
<div class="border" style="align-items:center; width:34%; margin-left:33%; padding:8px; display:grid; grid-template-columns: auto 64px; gap:8px; background-color: #f3f3f3;">
|
|
<div>
|
|
<i class="fa-solid fa-microchip"></i>
|
|
<span class="bold">AI</span>
|
|
<span class="ai-status bold">Enabled</span>
|
|
</div>
|
|
|
|
<div align="center" class="active ai-button" >
|
|
<span class="fa-solid fa-check" style="color:green"></span>
|
|
</div>
|
|
</div>
|
|
</p>
|
|
</ul>
|
|
</p>
|
|
</div> |