Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor bug fixes #148

Merged
merged 45 commits into from
Jun 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
b178105
Pagination bug
karthikscale3 Apr 4, 2024
af47e53
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 Apr 4, 2024
cc6ab77
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 Apr 4, 2024
677b1aa
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 Apr 4, 2024
f996899
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 Apr 4, 2024
0e963e2
Bug fix
karthikscale3 Apr 5, 2024
f3a8a23
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 Apr 5, 2024
3c353a5
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 Apr 5, 2024
94f0fb1
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 Apr 7, 2024
f22f397
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 Apr 8, 2024
5023d1f
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 Apr 9, 2024
4178d5c
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 Apr 11, 2024
4fe4108
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 Apr 13, 2024
784f09c
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 Apr 14, 2024
42f1128
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 Apr 19, 2024
0c8e92b
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 Apr 24, 2024
28227d9
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 Apr 28, 2024
0cec8be
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 Apr 28, 2024
eae354d
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 May 7, 2024
7723147
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 May 7, 2024
31bfd5f
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 May 7, 2024
1b9c986
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 May 9, 2024
31f50e6
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 May 9, 2024
4e30354
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 May 9, 2024
9cbb929
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 May 9, 2024
bee3df8
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 May 9, 2024
186f82b
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 May 13, 2024
2099f1d
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 May 13, 2024
047f9b6
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 May 13, 2024
194c65e
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 May 17, 2024
63eb067
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 May 20, 2024
3a44486
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 May 21, 2024
9ad8c44
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 May 21, 2024
5605411
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 May 21, 2024
eb53696
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 May 21, 2024
1d29604
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 May 22, 2024
020a3a9
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 May 22, 2024
b9b73db
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 May 22, 2024
a41a9f0
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 Jun 7, 2024
6111ef5
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 Jun 7, 2024
77d1bd5
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 Jun 13, 2024
3aa0528
Bugfixes
karthikscale3 Jun 16, 2024
76e1854
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 Jun 17, 2024
a8678f6
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 Jun 20, 2024
ebe8839
Bugfixes
karthikscale3 Jun 20, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions app/(protected)/project/[project_id]/playground/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import { AddLLMChat } from "@/components/playground/common";
import LLMChat from "@/components/playground/llmchat";
import HowTo from "@/components/shared/how-to";
import {
AnthropicModel,
AnthropicSettings,
Expand Down Expand Up @@ -86,6 +87,7 @@ export default function Page() {

return (
<div className="px-12 py-6 flex flex-col gap-8">
<HowTo link="https://docs.langtrace.ai/features/playground" />
<span className="text-sm font-semibold">
Note: Dont forget to add your LLM provider API keys in the{" "}
<Link href="/settings/keys" className="underline text-blue-400">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"use client";
import CreatePromptDialog from "@/components/shared/create-prompt-dialog";
import HowTo from "@/components/shared/how-to";
import { PromptInstructions } from "@/components/shared/setup-instructions";
import { Button } from "@/components/ui/button";
import { Label } from "@/components/ui/label";
Expand Down Expand Up @@ -54,6 +55,7 @@ export default function Page() {
if (!selectedPrompt)
return (
<div className="p-12 flex flex-col gap-2">
<HowTo link="https://docs.langtrace.ai/features/manage_prompts" />
<Button
className="w-fit"
variant={"outline"}
Expand Down Expand Up @@ -82,6 +84,7 @@ export default function Page() {
else
return (
<div className="px-12 py-12 flex flex-col gap-4">
<HowTo link="https://docs.langtrace.ai/features/manage_prompts" />
<div className="flex gap-4 items-center">
<Button
className="w-fit"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import { CreatePromptset } from "@/components/project/dataset/create";
import { EditPromptSet } from "@/components/project/dataset/edit";
import CardLoading from "@/components/shared/card-skeleton";
import HowTo from "@/components/shared/how-to";
import {
Card,
CardDescription,
Expand Down Expand Up @@ -53,6 +54,7 @@ export default function PromptManagement({ email }: { email: string }) {
} else {
return (
<div className="w-full py-12 px-12 flex flex-col gap-4">
<HowTo link="https://docs.langtrace.ai/features/manage_prompts" />
<div className="w-fit">
<CreatePromptset projectId={projectId} />
</div>
Expand Down
2 changes: 1 addition & 1 deletion components/playground/import-trace-conversation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export default function ImportTraceConversation({
Import Traced Conversation
</Button>
</DialogTrigger>
<DialogContent className="w-full max-w-6xl h-[600px] overflow-y-hidden">
<DialogContent className="w-full max-w-6xl h-[600px] overflow-y-scroll">
<div className="flex flex-col gap-2">
<Label htmlFor="name" className="text-left text-lg mb-4">
Select a conversation to import
Expand Down
17 changes: 17 additions & 0 deletions components/shared/how-to.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { QuestionMarkCircledIcon } from "@radix-ui/react-icons";
import Link from "next/link";
import { Button } from "../ui/button";

export default function HowTo({ link }: { link: string }) {
return (
<Link href={link} target="_blank">
<Button
className="absolute top-40 right-24 text-muted-foreground"
variant={"outline"}
>
How to use this
<QuestionMarkCircledIcon className="w-6 h-6 ml-2 text-muted-foreground" />
</Button>
</Link>
);
}
12 changes: 5 additions & 7 deletions components/shared/setup-instructions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ export function SetupInstructions({ project_id }: { project_id: string }) {
);
}


export function PromptInstructions({ id }: { id: string }) {
const [sdk, setSdk] = useState("python");

Expand All @@ -116,12 +115,11 @@ export function PromptInstructions({ id }: { id: string }) {
<div className="flex flex-col gap-6 border rounded-md p-4">
<div className="flex flex-row items-center gap-3">
<Button
disabled={true}
onClick={() => setSdk("python")}
variant={sdk === "python" ? "default" : "ghost"}
size={"sm"}
>
Python (Coming Soon)
Python
</Button>
<Button
onClick={() => setSdk("typescript")}
Expand Down Expand Up @@ -162,15 +160,15 @@ const prompt = Langtrace.getPromptFromRegistry('${id}')
onClick={() => {
copyToClipboard(
`
from langtrace_python_sdk.utils import (get_prompt_from_registry)
from langtrace_python_sdk import get_prompt_from_registry

prompt = get_prompt_from_registry('${id}')
prompt = get_prompt_from_registry('${id}')
`
);
}}
>
{`
from langtrace_python_sdk.utils import (get_prompt_from_registry)
{`// Must precede any llm module imports
from langtrace_python_sdk import get_prompt_from_registry

prompt = get_prompt_from_registry('${id}')
`}
Expand Down