File tree Expand file tree Collapse file tree
apps/app/src/components/general/app_settings/editor/lm_config Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<script lang =" ts" >
2+ import { openUrl } from ' @tauri-apps/plugin-opener' ;
23 import { z } from ' zod' ;
34
45 let {
3940 </script >
4041
4142<dialog class ="modal" open ={models_list_dialog_open }>
42- <div class =" modal-box" >
43+ <div class =" modal-box max-h-140 flex flex-col " >
4344 <h3 class =" font-bold text-lg mb-4" >Select Model</h3 >
4445
4546 {#if model_provider }
4647 <!-- content here -->
47- <ul class =" menu flex-nowrap w-full max -h-96 overflow-y-auto" >
48+ <ul class =" menu flex-nowrap w-full min -h-0 h-full overflow-y-auto" >
4849 {#each models as model (model .id )}
4950 {@const model_id_stripped = model .id .split (' /' )[1 ]}
5051 <li >
6263 {:else if models && ! models .length }
6364 No models found for {model_provider }
6465 {:else }
65- Loading...
66+ Fetching from internet
6667 {/if }
6768 {/each }
6869 </ul >
6970 {:else }
7071 Please select a Model Provider first
7172 {/if }
73+ <span class =" py-1 text-base-content/50 text-sm flex gap-1" >
74+ these models are fetched from
75+ <button
76+ onclick ={async () => {
77+ await openUrl (' https://ai-gateway.vercel.sh/v1/models' );
78+ }}
79+ class =" link link-primary"
80+ >
81+ <span class =" flex items-center" >
82+ here <div class =" i-tabler:arrow-up-right size-4" ></div >
83+ </span >
84+ </button >
85+ </span >
86+
7287 <button
7388 class =" btn btn-sm btn-circle btn-ghost absolute right-2 top-2"
7489 onclick ={() => (models_list_dialog_open = false )}>✕</button
You can’t perform that action at this time.
0 commit comments