Skip to content

Commit

Permalink
ui: support update chat engine's llm and reranker
Browse files Browse the repository at this point in the history
  • Loading branch information
634750802 committed Apr 16, 2024
1 parent 50b8a0e commit b22deab
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions src/components/dialogs/create-chat-engine-dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,18 @@ export function ChatEngineFields () {
<FormItem>
<FormLabel>Reranker Provider</FormLabel>
<FormControl>
<Input readOnly {...field} />
<Input {...field} />
</FormControl>
</FormItem>
)}
/>
<FormField
name="engine_options.reranker.config.model"
render={({ field }) => (
<FormItem>
<FormLabel>Reranker Provider</FormLabel>
<FormControl>
<Input {...field} />
</FormControl>
</FormItem>
)}
Expand All @@ -123,7 +134,18 @@ export function ChatEngineFields () {
<FormItem>
<FormLabel>LLM Provider</FormLabel>
<FormControl>
<Input readOnly {...field} />
<Input {...field} />
</FormControl>
</FormItem>
)}
/>
<FormField
name="engine_options.llm.config.model"
render={({ field }) => (
<FormItem>
<FormLabel>LLM Provider</FormLabel>
<FormControl>
<Input {...field} />
</FormControl>
</FormItem>
)}
Expand Down

0 comments on commit b22deab

Please sign in to comment.