mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-26 18:38:06 +00:00
nextauth
# What does this PR do? ## Test Plan
This commit is contained in:
parent
83c89265e0
commit
464b96cb09
23 changed files with 577 additions and 81 deletions
|
|
@ -4,11 +4,12 @@ import { useEffect, useState } from "react";
|
|||
import { useParams } from "next/navigation";
|
||||
import { ChatCompletion } from "@/lib/types";
|
||||
import { ChatCompletionDetailView } from "@/components/chat-completions/chat-completion-detail";
|
||||
import { client } from "@/lib/client";
|
||||
import { useAuthClient } from "@/hooks/use-auth-client";
|
||||
|
||||
export default function ChatCompletionDetailPage() {
|
||||
const params = useParams();
|
||||
const id = params.id as string;
|
||||
const client = useAuthClient();
|
||||
|
||||
const [completionDetail, setCompletionDetail] =
|
||||
useState<ChatCompletion | null>(null);
|
||||
|
|
@ -45,7 +46,7 @@ export default function ChatCompletionDetailPage() {
|
|||
};
|
||||
|
||||
fetchCompletionDetail();
|
||||
}, [id]);
|
||||
}, [id, client]);
|
||||
|
||||
return (
|
||||
<ChatCompletionDetailView
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue