fix: linter
This commit is contained in:
parent
3d8cfbf99a
commit
1ec9c29df6
@ -54,7 +54,9 @@ export const useChat = () => {
|
||||
const showIncreaseContextSizeModal = useContextSizeApproval(
|
||||
(state) => state.showApprovalModal
|
||||
)
|
||||
const getDisabledToolsForThread = useToolAvailable((state) => state.getDisabledToolsForThread)
|
||||
const getDisabledToolsForThread = useToolAvailable(
|
||||
(state) => state.getDisabledToolsForThread
|
||||
)
|
||||
|
||||
const getProviderByName = useModelProvider((state) => state.getProviderByName)
|
||||
const selectedModel = useModelProvider((state) => state.selectedModel)
|
||||
@ -82,7 +84,7 @@ export const useChat = () => {
|
||||
const selectedAssistant =
|
||||
assistants.find((a) => a.id === currentAssistant?.id) || assistants[0]
|
||||
|
||||
const getCurrentThread = useCallback(async (prompt: string) => {
|
||||
const getCurrentThread = useCallback(async () => {
|
||||
let currentThread = retrieveThread()
|
||||
|
||||
if (!currentThread) {
|
||||
@ -570,5 +572,5 @@ export const useChat = () => {
|
||||
]
|
||||
)
|
||||
|
||||
return useMemo(() => (sendMessage), [sendMessage])
|
||||
return useMemo(() => sendMessage, [sendMessage])
|
||||
}
|
||||
|
||||
@ -77,7 +77,11 @@ function ThreadDetail() {
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [])
|
||||
|
||||
const updateMessage = (item: ThreadMessage, message: string, imageUrls?: string[]) => {
|
||||
const updateMessage = (
|
||||
item: ThreadMessage,
|
||||
message: string,
|
||||
imageUrls?: string[]
|
||||
) => {
|
||||
const newMessages: ThreadMessage[] = messages.map((m) => {
|
||||
if (m.id === item.id) {
|
||||
const msg: ThreadMessage = cloneDeep(m)
|
||||
@ -98,6 +102,7 @@ function ThreadDetail() {
|
||||
image_url: {
|
||||
url: url,
|
||||
},
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
} as any)
|
||||
})
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user