Skip to content

Commit 0ebbb6a

Browse files
committed
-update compressed index.html.gz after npm run build
-refactor: replace OptimizedTextareaValue with AutosizeTextareaApi in VSCode context hook
1 parent fa9efef commit 0ebbb6a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
261 Bytes
Binary file not shown.

examples/server/webui/src/utils/llama-vscode.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { useEffect, useState } from 'react';
22
import { MessageExtraContext } from './types';
3-
import { OptimizedTextareaValue } from '../components/ChatScreen';
3+
import { AutosizeTextareaApi } from '../components/useChatTextarea.ts';
44

55
// Extra context when using llama.cpp WebUI from llama-vscode, inside an iframe
66
// Ref: https://github.com/ggml-org/llama.cpp/pull/11940
@@ -15,7 +15,7 @@ interface SetTextEvData {
1515
* window.postMessage({ command: 'setText', text: 'Spot the syntax error', context: 'def test()\n return 123' }, '*');
1616
*/
1717

18-
export const useVSCodeContext = (textarea: OptimizedTextareaValue) => {
18+
export const useVSCodeContext = (textarea: AutosizeTextareaApi ) => {
1919
const [extraContext, setExtraContext] = useState<MessageExtraContext | null>(
2020
null
2121
);

0 commit comments

Comments
 (0)