File tree Expand file tree Collapse file tree
webapp/_webapp/src/views/settings/sections Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -49,29 +49,27 @@ export const ApiKeySettings = () => {
4949 content = {
5050 < div className = "flex flex-col h-[80vh] gap-4 p-4 overflow-y-auto" >
5151 < CustomModelSection key = { "" } isNew onChange = { handleCustomModelChange } />
52- { Array . from ( settings ?. customModels || [ ] )
53- . sort ( ( a , b ) => a . name . localeCompare ( b . name ) )
54- . map ( ( m ) => (
55- < >
56- < hr > </ hr >
57- < CustomModelSection
58- isNew = { false }
59- onChange = { handleCustomModelChange }
60- key = { m . id }
61- model = { {
62- id : m . id ,
63- name : m . name ,
64- baseUrl : m . baseUrl ,
65- slug : m . slug ,
66- apiKey : m . apiKey ,
67- contextWindow : m . contextWindow ,
68- maxOutput : m . maxOutput ,
69- inputPrice : m . inputPrice ,
70- outputPrice : m . outputPrice ,
71- } }
72- />
73- </ >
74- ) ) }
52+ { Array . from ( settings ?. customModels || [ ] ) . map ( ( m ) => (
53+ < >
54+ < hr > </ hr >
55+ < CustomModelSection
56+ isNew = { false }
57+ onChange = { handleCustomModelChange }
58+ key = { m . id }
59+ model = { {
60+ id : m . id ,
61+ name : m . name ,
62+ baseUrl : m . baseUrl ,
63+ slug : m . slug ,
64+ apiKey : m . apiKey ,
65+ contextWindow : m . contextWindow ,
66+ maxOutput : m . maxOutput ,
67+ inputPrice : m . inputPrice ,
68+ outputPrice : m . outputPrice ,
69+ } }
70+ />
71+ </ >
72+ ) ) }
7573 </ div >
7674 }
7775 />
You can’t perform that action at this time.
0 commit comments