mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-22 20:40:00 +00:00
finish moving chat -> chat-playground / ui and updating the prompts
Signed-off-by: Francisco Javier Arceo <farceo@redhat.com>
This commit is contained in:
parent
19d2555424
commit
94414910f1
14 changed files with 20 additions and 20 deletions
|
|
@ -1,14 +1,14 @@
|
||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
import { signIn, signOut, useSession } from "next-auth/react";
|
import { signIn, signOut, useSession } from "next-auth/react";
|
||||||
import { Button } from "@/components/chat/button";
|
import { Button } from "@/components/ui/button";
|
||||||
import {
|
import {
|
||||||
Card,
|
Card,
|
||||||
CardContent,
|
CardContent,
|
||||||
CardDescription,
|
CardDescription,
|
||||||
CardHeader,
|
CardHeader,
|
||||||
CardTitle,
|
CardTitle,
|
||||||
} from "@/components/chat/card";
|
} from "@/components/ui/card";
|
||||||
import { Copy, Check, Home, Github } from "lucide-react";
|
import { Copy, Check, Home, Github } from "lucide-react";
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import { useRouter } from "next/navigation";
|
import { useRouter } from "next/navigation";
|
||||||
|
|
|
||||||
|
|
@ -151,7 +151,7 @@ const handleSubmitWithContent = async (content: string) => {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
const suggestions = [
|
const suggestions = [
|
||||||
"What is the weather in San Francisco?",
|
"Write a Python function that prints 'Hello, World!'",
|
||||||
"Explain step-by-step how to solve this math problem: If x² + 6x + 9 = 25, what is x?",
|
"Explain step-by-step how to solve this math problem: If x² + 6x + 9 = 25, what is x?",
|
||||||
"Design a simple algorithm to find the longest palindrome in a string.",
|
"Design a simple algorithm to find the longest palindrome in a string.",
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -16,8 +16,8 @@ import {
|
||||||
TableHead,
|
TableHead,
|
||||||
TableHeader,
|
TableHeader,
|
||||||
TableRow,
|
TableRow,
|
||||||
} from "@/components/chat/table";
|
} from "@/components/ui/table";
|
||||||
import { Skeleton } from "@/components/chat/skeleton";
|
import { Skeleton } from "@/components/ui/skeleton";
|
||||||
|
|
||||||
export default function VectorStoresPage() {
|
export default function VectorStoresPage() {
|
||||||
const client = useAuthClient();
|
const client = useAuthClient();
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
import { ChatMessage, ChatCompletion } from "@/lib/types";
|
import { ChatMessage, ChatCompletion } from "@/lib/types";
|
||||||
import { ChatMessageItem } from "@/components/chat-completions/chat-messasge-item";
|
import { ChatMessageItem } from "@/components/chat-completions/chat-messasge-item";
|
||||||
import { Card, CardContent, CardHeader, CardTitle } from "@/components/chat/card";
|
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
|
||||||
import {
|
import {
|
||||||
DetailLoadingView,
|
DetailLoadingView,
|
||||||
DetailErrorView,
|
DetailErrorView,
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ import { extractTextFromContentPart } from "@/lib/format-message-content";
|
||||||
import {
|
import {
|
||||||
MessageBlock,
|
MessageBlock,
|
||||||
ToolCallBlock,
|
ToolCallBlock,
|
||||||
} from "@/components/chat/message-components";
|
} from "@/components/chat-playground/message-components";
|
||||||
|
|
||||||
interface ChatMessageItemProps {
|
interface ChatMessageItemProps {
|
||||||
message: ChatMessage;
|
message: ChatMessage;
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { Card, CardContent, CardHeader, CardTitle } from "@/components/chat/card";
|
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
|
||||||
import { Skeleton } from "@/components/chat/skeleton";
|
import { Skeleton } from "@/components/ui/skeleton";
|
||||||
|
|
||||||
export function DetailLoadingView({ title }: { title: string }) {
|
export function DetailLoadingView({ title }: { title: string }) {
|
||||||
return (
|
return (
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ import {
|
||||||
BreadcrumbList,
|
BreadcrumbList,
|
||||||
BreadcrumbPage,
|
BreadcrumbPage,
|
||||||
BreadcrumbSeparator,
|
BreadcrumbSeparator,
|
||||||
} from "@/components/chat/breadcrumb";
|
} from "@/components/ui/breadcrumb";
|
||||||
|
|
||||||
export interface BreadcrumbSegment {
|
export interface BreadcrumbSegment {
|
||||||
label: string;
|
label: string;
|
||||||
|
|
|
||||||
|
|
@ -13,8 +13,8 @@ import {
|
||||||
TableHead,
|
TableHead,
|
||||||
TableHeader,
|
TableHeader,
|
||||||
TableRow,
|
TableRow,
|
||||||
} from "@/components/chat/table";
|
} from "@/components/ui/table";
|
||||||
import { Skeleton } from "@/components/chat/skeleton";
|
import { Skeleton } from "@/components/ui/skeleton";
|
||||||
|
|
||||||
// Generic table row data interface
|
// Generic table row data interface
|
||||||
export interface LogTableRow {
|
export interface LogTableRow {
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import {
|
import {
|
||||||
MessageBlock,
|
MessageBlock,
|
||||||
ToolCallBlock,
|
ToolCallBlock,
|
||||||
} from "@/components/chat/message-components";
|
} from "@/components/chat-playground/message-components";
|
||||||
import { FunctionCallItem } from "../utils/item-types";
|
import { FunctionCallItem } from "../utils/item-types";
|
||||||
|
|
||||||
interface FunctionCallItemProps {
|
interface FunctionCallItemProps {
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import {
|
import {
|
||||||
MessageBlock,
|
MessageBlock,
|
||||||
ToolCallBlock,
|
ToolCallBlock,
|
||||||
} from "@/components/chat/message-components";
|
} from "@/components/chat-playground/message-components";
|
||||||
import { BaseItem } from "../utils/item-types";
|
import { BaseItem } from "../utils/item-types";
|
||||||
|
|
||||||
interface GenericItemProps {
|
interface GenericItemProps {
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import {
|
import {
|
||||||
MessageBlock,
|
MessageBlock,
|
||||||
ToolCallBlock,
|
ToolCallBlock,
|
||||||
} from "@/components/chat/message-components";
|
} from "@/components/chat-playground/message-components";
|
||||||
import { FunctionCallItem, FunctionCallOutputItem } from "../utils/item-types";
|
import { FunctionCallItem, FunctionCallOutputItem } from "../utils/item-types";
|
||||||
|
|
||||||
interface GroupedFunctionCallItemProps {
|
interface GroupedFunctionCallItemProps {
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import { MessageBlock } from "@/components/chat/message-components";
|
import { MessageBlock } from "@/components/chat-playground/message-components";
|
||||||
import { MessageItem } from "../utils/item-types";
|
import { MessageItem } from "../utils/item-types";
|
||||||
|
|
||||||
interface MessageItemProps {
|
interface MessageItemProps {
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import {
|
import {
|
||||||
MessageBlock,
|
MessageBlock,
|
||||||
ToolCallBlock,
|
ToolCallBlock,
|
||||||
} from "@/components/chat/message-components";
|
} from "@/components/chat-playground/message-components";
|
||||||
import { WebSearchCallItem } from "../utils/item-types";
|
import { WebSearchCallItem } from "../utils/item-types";
|
||||||
|
|
||||||
interface WebSearchItemProps {
|
interface WebSearchItemProps {
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,8 @@
|
||||||
|
|
||||||
import type { VectorStore } from "llama-stack-client/resources/vector-stores/vector-stores";
|
import type { VectorStore } from "llama-stack-client/resources/vector-stores/vector-stores";
|
||||||
import type { VectorStoreFile } from "llama-stack-client/resources/vector-stores/files";
|
import type { VectorStoreFile } from "llama-stack-client/resources/vector-stores/files";
|
||||||
import { Card, CardContent, CardHeader, CardTitle } from "@/components/chat/card";
|
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
|
||||||
import { Skeleton } from "@/components/chat/skeleton";
|
import { Skeleton } from "@/components/ui/skeleton";
|
||||||
import {
|
import {
|
||||||
DetailLoadingView,
|
DetailLoadingView,
|
||||||
DetailErrorView,
|
DetailErrorView,
|
||||||
|
|
@ -20,7 +20,7 @@ import {
|
||||||
TableHead,
|
TableHead,
|
||||||
TableHeader,
|
TableHeader,
|
||||||
TableRow,
|
TableRow,
|
||||||
} from "@/components/chat/table";
|
} from "@/components/ui/table";
|
||||||
|
|
||||||
interface VectorStoreDetailViewProps {
|
interface VectorStoreDetailViewProps {
|
||||||
store: VectorStore | null;
|
store: VectorStore | null;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue