mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-19 11:29:39 +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
|
|
@ -264,11 +264,15 @@ export default function ChatPlaygroundPage() {
|
||||||
createdAt: new Date(),
|
createdAt: new Date(),
|
||||||
};
|
};
|
||||||
|
|
||||||
setCurrentSession(prev => prev ? {
|
setCurrentSession(prev =>
|
||||||
|
prev
|
||||||
|
? {
|
||||||
...prev,
|
...prev,
|
||||||
messages: [...prev.messages, assistantMessage],
|
messages: [...prev.messages, assistantMessage],
|
||||||
updatedAt: Date.now()
|
updatedAt: Date.now(),
|
||||||
} : null);
|
}
|
||||||
|
: null
|
||||||
|
);
|
||||||
|
|
||||||
let fullContent = "";
|
let fullContent = "";
|
||||||
for await (const chunk of response) {
|
for await (const chunk of response) {
|
||||||
|
|
|
||||||
|
|
@ -52,8 +52,10 @@ export default function ContentsListPage() {
|
||||||
const [file, setFile] = useState<VectorStoreFile | null>(null);
|
const [file, setFile] = useState<VectorStoreFile | null>(null);
|
||||||
const [contents, setContents] = useState<VectorStoreContentItem[]>([]);
|
const [contents, setContents] = useState<VectorStoreContentItem[]>([]);
|
||||||
const [isLoadingStore, setIsLoadingStore] = useState(true);
|
const [isLoadingStore, setIsLoadingStore] = useState(true);
|
||||||
|
const [isLoadingFile, setIsLoadingFile] = useState(true);
|
||||||
const [isLoadingContents, setIsLoadingContents] = useState(true);
|
const [isLoadingContents, setIsLoadingContents] = useState(true);
|
||||||
const [errorStore, setErrorStore] = useState<Error | null>(null);
|
const [errorStore, setErrorStore] = useState<Error | null>(null);
|
||||||
|
const [errorFile, setErrorFile] = useState<Error | null>(null);
|
||||||
const [errorContents, setErrorContents] = useState<Error | null>(null);
|
const [errorContents, setErrorContents] = useState<Error | null>(null);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue