Skip to content

Commit

Permalink
AI Planet changes for langfuse
Browse files Browse the repository at this point in the history
  • Loading branch information
gourab-aiplanet authored and sam-aiplanet committed Aug 6, 2024
1 parent e08fbe0 commit 7b0b11c
Show file tree
Hide file tree
Showing 10 changed files with 88 additions and 88 deletions.
12 changes: 6 additions & 6 deletions web/src/components/LangfuseLogo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ const VersionLabel = ({ className }: { className?: string }) => {
<DropdownMenuContent>
{hasUpdate ? (
<>
<DropdownMenuLabel>
{/* <DropdownMenuLabel>
New {checkUpdate.data?.updateType} version:{" "}
{checkUpdate.data?.latestRelease}
</DropdownMenuLabel>
</DropdownMenuLabel> */}
<DropdownMenuSeparator />
</>
) : !env.NEXT_PUBLIC_LANGFUSE_CLOUD_REGION ? (
Expand Down Expand Up @@ -180,13 +180,13 @@ export const LangfuseLogo = ({
<LangfuseIcon size={size === "sm" ? 16 : 20} />
<span
className={cn(
"ml-2 font-mono font-semibold",
size === "sm" ? "text-sm" : "text-lg",
"ml-2 font-mono font-semibold text-sm",
// size === "sm" ? "text-sm" : "text-sm",
)}
>
Langfuse
AI Planet
</span>
{version && <VersionLabel className="ml-2" />}
{/* {version && <VersionLabel className="ml-2" />} */}
</div>
</div>
);
18 changes: 9 additions & 9 deletions web/src/components/layouts/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ const userNavigation = [
onClick: () => {},
content: <ThemeToggle />,
},
{
name: "Sign out",
onClick: signOutUser,
},
// {
// name: "Sign out",
// onClick: signOutUser,
// },
];

const pathsWithoutNavigation: string[] = [
Expand Down Expand Up @@ -208,7 +208,7 @@ export default function Layout(props: PropsWithChildren) {
<>
<Head>
<title>
{currentPathName ? `${currentPathName} | Langfuse` : "Langfuse"}
{currentPathName ? `${currentPathName} | AI Planet` : "AI Planet"}
</title>
<link
rel="apple-touch-icon"
Expand Down Expand Up @@ -298,7 +298,7 @@ export default function Layout(props: PropsWithChildren) {
<div className="text-xs font-semibold text-muted-foreground">
Project
</div>
<NewProjectButton size="xs" />
{/* <NewProjectButton size="xs" /> */}
</div>
<ProjectNavigation
currentProjectId={projectId ?? ""}
Expand Down Expand Up @@ -328,7 +328,7 @@ export default function Layout(props: PropsWithChildren) {
<ul role="list" className="flex h-full flex-col">
<MainNavigation nav={topNavigation} />
<MainNavigation nav={bottomNavigation} className="mt-auto" />
<FeedbackButtonWrapper
{/* <FeedbackButtonWrapper
className="space-y-1"
title="Provide feedback"
description="What do you think about this project? What can be improved?"
Expand All @@ -341,12 +341,12 @@ export default function Layout(props: PropsWithChildren) {
/>
Feedback
</li>
</FeedbackButtonWrapper>
</FeedbackButtonWrapper> */}
<div className="mb-2 flex flex-row place-content-between items-center">
<div className="text-xs font-semibold text-muted-foreground">
Project
</div>
<NewProjectButton size="xs" />
{/* <NewProjectButton size="xs" /> */}
</div>
<ProjectNavigation
currentProjectId={projectId ?? ""}
Expand Down
122 changes: 61 additions & 61 deletions web/src/components/layouts/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,90 +41,90 @@ export const ROUTES: Route[] = [
name: "Traces",
pathname: `/project/[projectId]/traces`,
},
{
name: "Sessions",
pathname: `/project/[projectId]/sessions`,
},
// {
// name: "Sessions",
// pathname: `/project/[projectId]/sessions`,
// },
{
name: "Generations",
pathname: `/project/[projectId]/generations`,
},
{
name: "Scores",
pathname: `/project/[projectId]/scores`,
},
{
name: "Models",
pathname: `/project/[projectId]/models`,
},
// {
// name: "Scores",
// pathname: `/project/[projectId]/scores`,
// },
// {
// name: "Models",
// pathname: `/project/[projectId]/models`,
// },
],
},
{
name: "Evaluation",
icon: Lightbulb,
requires: "cloud",
// requires: "cloud",
label: "Beta",
children: [
{
name: "Templates",
pathname: `/project/[projectId]/evals/templates`,
requires: "cloud",
rbacScope: "evalTemplate:read",
// requires: "cloud",
// rbacScope: "evalTemplate:read",
},
{
name: "Configs",
pathname: `/project/[projectId]/evals/configs`,
requires: "cloud",
rbacScope: "evalJob:read",
// requires: "cloud",
// rbacScope: "evalJob:read",
},
{
name: "Log",
pathname: `/project/[projectId]/evals/log`,
requires: "cloud",
rbacScope: "evalJobExecution:read",
// requires: "cloud",
// rbacScope: "evalJobExecution:read",
},
],
},
{
name: "Users",
pathname: `/project/[projectId]/users`,
icon: UsersIcon,
},
{
name: "Prompts",
pathname: "/project/[projectId]/prompts",
icon: PenSquareIcon,
rbacScope: "prompts:read",
},
{
name: "Playground",
pathname: "/project/[projectId]/playground",
icon: TerminalIcon,
requires: "cloud-or-ee",
label: "Beta",
},
{
name: "Datasets",
pathname: `/project/[projectId]/datasets`,
icon: Database,
},
{
name: "Settings",
pathname: "/project/[projectId]/settings",
icon: Settings,
bottom: true,
},
{
name: "Docs",
pathname: "https://langfuse.com/docs",
icon: LibraryBig,
bottom: true,
newTab: true,
},
{
name: "Support",
pathname: "/project/[projectId]/support",
icon: LifeBuoy,
bottom: true,
},
// {
// name: "Users",
// pathname: `/project/[projectId]/users`,
// icon: UsersIcon,
// },
// {
// name: "Prompts",
// pathname: "/project/[projectId]/prompts",
// icon: PenSquareIcon,
// rbacScope: "prompts:read",
// },
// {
// name: "Playground",
// pathname: "/project/[projectId]/playground",
// icon: TerminalIcon,
// requires: "cloud-or-ee",
// label: "Beta",
// },
// {
// name: "Datasets",
// pathname: `/project/[projectId]/datasets`,
// icon: Database,
// },
// {
// name: "Settings",
// pathname: "/project/[projectId]/settings",
// icon: Settings,
// bottom: true,
// },
// {
// name: "Docs",
// pathname: "https://langfuse.com/docs",
// icon: LibraryBig,
// bottom: true,
// newTab: true,
// },
// {
// name: "Support",
// pathname: "/project/[projectId]/support",
// icon: LifeBuoy,
// bottom: true,
// },
];
4 changes: 2 additions & 2 deletions web/src/components/table/use-cases/sessions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ export default function SessionsTable({
: {
isLoading: false,
isError: false,
data: sessions.data.map((t) => convertToTableRow(t)),
data: sessions.data.map((t: any) => convertToTableRow(t)),
}
}
pagination={{
Expand All @@ -382,7 +382,7 @@ export default function SessionsTable({
help={{
description:
"A session is a collection of related traces, such as a conversation or thread. To begin, add a sessionId to the trace.",
href: "https://langfuse.com/docs/tracing-features/sessions",
href: "",
}}
/>
</>
Expand Down
2 changes: 1 addition & 1 deletion web/src/ee/features/evals/components/template-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export const EvalTemplateForm = (props: {
<SelectTrigger className="text-primary ring-transparent focus:ring-0 focus:ring-offset-0">
<SelectValue
className="text-sm font-semibold text-primary"
placeholder={"Select a Langfuse managed template"}
placeholder={"Select a AI Planet managed template"}
/>
</SelectTrigger>
<SelectContent className="max-h-60 max-w-80">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ export function CreateLLMApiKeyDialog() {
<FormItem>
<FormLabel>Provider name</FormLabel>
<FormDescription>
Name to identify the key within Langfuse.
Name to identify the key within AI Planet.
</FormDescription>
<FormControl>
<Input {...field} placeholder="OpenAI" />
Expand Down Expand Up @@ -284,7 +284,7 @@ export function CreateLLMApiKeyDialog() {
<FormLabel>Enable default models</FormLabel>
<FormDescription>
Default models for the selected adapter will be
available in Langfuse features.
available in AI Planet features.
</FormDescription>
{currentAdapter === LLMAdapter.Azure && (
<FormDescription className="text-yellow-700">
Expand Down
4 changes: 2 additions & 2 deletions web/src/pages/project/[projectId]/generations.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ export default function Generations() {
title="Generations"
help={{
description:
"A generation captures a single LLM call. It is one type of observation which can be nested in a trace. See docs to learn more.",
href: "https://langfuse.com/docs/tracing",
"A generation captures a single LLM call. It is one type of observation which can be nested in a trace.",
href: "",
}}
/>
<GenerationsTable projectId={projectId} />
Expand Down
4 changes: 2 additions & 2 deletions web/src/pages/project/[projectId]/scores.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ export default function ScoresPage() {
title="Scores"
help={{
description:
"A scores is an evaluation of a traces or observations. It can be created from user feedback, model-based evaluations, or manual review. See docs to learn more.",
href: "https://langfuse.com/docs/scores",
"A scores is an evaluation of a traces or observations. It can be created from user feedback, model-based evaluations, or manual review.",
href: "",
}}
/>
<ScoresTable projectId={projectId} />
Expand Down
2 changes: 1 addition & 1 deletion web/src/pages/project/[projectId]/sessions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default function Sessions() {
help={{
description:
"A session is a collection of related traces, such as a conversation or thread. To begin, add a sessionId to the trace.",
href: "https://langfuse.com/docs/sessions",
href: "",
}}
/>

Expand Down
4 changes: 2 additions & 2 deletions web/src/pages/project/[projectId]/traces.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ export default function Traces() {
title="Traces"
help={{
description:
"A trace represents a single function/api invocation. Traces contain observations. See docs to learn more.",
href: "https://langfuse.com/docs/tracing",
"A trace represents a single function/api invocation. Traces contain observations.",
href: "",
}}
/>
<TracesTable projectId={projectId} />
Expand Down

0 comments on commit 7b0b11c

Please sign in to comment.