Skip to content

Commit

Permalink
fix migration missing instructions
Browse files Browse the repository at this point in the history
Signed-off-by: James <[email protected]>
  • Loading branch information
namchuai committed Aug 1, 2024
1 parent e7486ae commit b1fa059
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions web/hooks/useMigratingData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,12 @@ const useMigratingData = () => {
continue
}
const threadTitle: string = thread.title ?? 'New Thread'
const instruction: string = thread.assistants[0]?.instruction ?? ''

const instructions: string = thread.assistants[0]?.instructions ?? ''
// currently, we don't have api support for creating thread with messages
const cortexThread = await createThread(modelId, assistants[0])
console.log('createThread', cortexThread)
// update instruction
cortexThread.assistants[0].instructions = instruction
cortexThread.assistants[0].instructions = instructions
cortexThread.title = threadTitle

// update thread name
Expand Down

0 comments on commit b1fa059

Please sign in to comment.