Skip to content

Commit

Permalink
[editor] Support adding prompt at the top of the config
Browse files Browse the repository at this point in the history
# [editor] Support adding prompt at the top of the config

Add the 'AddPromptButton' at index 0 to support adding a prompt at the top of the config:


https://github.com/lastmile-ai/aiconfig/assets/5060851/76a28aa6-20ce-44e7-bbce-1714b5865a2c
  • Loading branch information
Ryan Holinshead committed Jan 2, 2024
1 parent 0045dcd commit 2a8df92
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,12 @@ export default function EditorContainer({
onUpdateParameters={onUpdateGlobalParameters}
/>
<Container maw="80rem" className={classes.promptsContainer}>
<div className={classes.addPromptRow}>
<AddPromptButton
getModels={callbacks.getModels}
addPrompt={(model: string) => onAddPrompt(0, model)}
/>
</div>
{aiconfigState.prompts.map((prompt: ClientPrompt, i: number) => {
return (
<Stack key={prompt._ui.id}>
Expand Down

0 comments on commit 2a8df92

Please sign in to comment.