mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-19 07:38:41 +00:00
updated
Signed-off-by: Francisco Javier Arceo <farceo@redhat.com>
This commit is contained in:
parent
39fc124f65
commit
92f2944cdc
2 changed files with 14 additions and 8 deletions
|
|
@ -196,7 +196,7 @@ export default function ChatPlaygroundPage() {
|
|||
|
||||
// Use the helper function with the content
|
||||
await handleSubmitWithContent(userMessage.content);
|
||||
};
|
||||
};
|
||||
|
||||
const handleSubmitWithContent = async (content: string) => {
|
||||
setIsGenerating(true);
|
||||
|
|
@ -264,11 +264,15 @@ export default function ChatPlaygroundPage() {
|
|||
createdAt: new Date(),
|
||||
};
|
||||
|
||||
setCurrentSession(prev => prev ? {
|
||||
setCurrentSession(prev =>
|
||||
prev
|
||||
? {
|
||||
...prev,
|
||||
messages: [...prev.messages, assistantMessage],
|
||||
updatedAt: Date.now()
|
||||
} : null);
|
||||
updatedAt: Date.now(),
|
||||
}
|
||||
: null
|
||||
);
|
||||
|
||||
let fullContent = "";
|
||||
for await (const chunk of response) {
|
||||
|
|
|
|||
|
|
@ -52,8 +52,10 @@ export default function ContentsListPage() {
|
|||
const [file, setFile] = useState<VectorStoreFile | null>(null);
|
||||
const [contents, setContents] = useState<VectorStoreContentItem[]>([]);
|
||||
const [isLoadingStore, setIsLoadingStore] = useState(true);
|
||||
const [isLoadingFile, setIsLoadingFile] = useState(true);
|
||||
const [isLoadingContents, setIsLoadingContents] = useState(true);
|
||||
const [errorStore, setErrorStore] = useState<Error | null>(null);
|
||||
const [errorFile, setErrorFile] = useState<Error | null>(null);
|
||||
const [errorContents, setErrorContents] = useState<Error | null>(null);
|
||||
|
||||
useEffect(() => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue