@@ -43,6 +43,8 @@ export const NewDatasetModal = (props: NewDatasetModalProps) => {
43
43
const organizationId = userContext . selectedOrganizationId ?.( ) ;
44
44
if ( ! organizationId ) return ;
45
45
46
+ const curServerConfig = serverConfig ( ) ;
47
+
46
48
fetch ( `${ apiHost } /dataset` , {
47
49
method : "POST" ,
48
50
credentials : "include" ,
@@ -53,7 +55,7 @@ export const NewDatasetModal = (props: NewDatasetModalProps) => {
53
55
body : JSON . stringify ( {
54
56
dataset_name : name ( ) ,
55
57
organization_id : organizationId ,
56
- server_configuration : serverConfig ( ) ,
58
+ server_configuration : curServerConfig ,
57
59
client_configuration : "{}" ,
58
60
} ) ,
59
61
} )
@@ -209,7 +211,7 @@ export const NewDatasetModal = (props: NewDatasetModalProps) => {
209
211
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
210
212
) ?. name ?? availableEmbeddingModels [ 0 ] . name
211
213
}
212
- onSelect = { ( e ) => {
214
+ onChange = { ( e ) => {
213
215
const selectedModel = availableEmbeddingModels . find (
214
216
( model ) => model . name === e . currentTarget . value ,
215
217
) ;
@@ -237,7 +239,7 @@ export const NewDatasetModal = (props: NewDatasetModalProps) => {
237
239
</ div >
238
240
</ div >
239
241
240
- < div class = "mt-3 flex items-center justify-between" >
242
+ < div class = "mt-4 flex items-center justify-between" >
241
243
< button
242
244
type = "button"
243
245
class = "rounded-md border px-2 py-1 text-sm font-semibold leading-6 hover:bg-neutral-50 focus:outline-magenta-500"
0 commit comments