Skip to content

Commit

Permalink
Release 3.0.10 (#290)
Browse files Browse the repository at this point in the history
* Pagination bug

* Bug fix

* Update package

* Bugfixes

* Add migration file

* adding ability to add to dataset from traces tab

* fixing z-index bug

* fixing llm parsing, disable button for non llm traces

* cleaning up api providers page

* more bug fixes, auditing models

* adding api key auth to create project api key (#270)

* Improvements to prompt playground (#272)

* fixing static text area, fixing overlap

* creating custo ui for playground taces

* fetching traces on dialog open

* fixes

* fixes

* fixes

---------

Co-authored-by: Karthik Kalyanaraman <[email protected]>

* fix

* fix

* support for o1-preview and o1-mini (#275)

* fixing live prompt bug (#277)

* DSPy enhancements (#280)

* DSPy experiments

* LiteLLM support

* eval charts

* experiment metrics

* empty state

* minor fix

* fix

* clearing invite form fields on send (#279)

* Track project creation count metrics (#271)

* adding posthog

* bug fixes, adding new env vars

* adding posthog api key to dockerfile

* updating read me

* removing sensitive data

* removing more data

* adding sign up count by team

* minor

* update

* fixes

---------

Co-authored-by: Karthik Kalyanaraman <[email protected]>

* minor

* minor (#282)

* add vercel ai pricing (#283)

* fix (#284)

* Fixes (#289)

---------

Co-authored-by: dylan <[email protected]>
Co-authored-by: dylanzuber-scale3 <[email protected]>
  • Loading branch information
3 people authored Oct 4, 2024
1 parent 68075a0 commit e95d88f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export default function LayoutClient({
}) {
const pathname = usePathname();
const project_id = pathname.split("/")[2];
const experiment_id = pathname.split("/")[4];
const href = `/project/${project_id}/dspy-experiments`;

const [page, setPage] = useState(1);
Expand Down Expand Up @@ -96,18 +97,18 @@ export default function LayoutClient({
setExperiments(newExperiments);

// dedupe navLinks from current and new data
const newNavLinks = [];
const newNavLinks: any[] = [];
for (const nav of navs) {
if (!navLinks.find((n) => n.value === nav.value)) {
newNavLinks.push(nav);
}
}
setNavLinks([...navLinks, ...newNavLinks]);
setNavLinks((prev) => [...prev, ...newNavLinks]);

// route to first experiment if no experiment is selected
if (navLinks.length > 0) {
const experimentId = navLinks[0].value;
if (!pathname.includes(experimentId)) {
if (!experiment_id) {
const experimentId = navLinks[0].value;
window.location.href = `${href}/${experimentId}`;
}
}
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { authOptions } from "@/lib/auth/options";
import { Metadata } from "next";
import { getServerSession } from "next-auth";
import { redirect } from "next/navigation";
import { PageClient } from "./page-client";

export const metadata: Metadata = {
title: "Langtrace | Traces",
Expand All @@ -14,11 +13,5 @@ export default async function Page() {
if (!session || !session.user) {
redirect("/login");
}
const user = session?.user;

return (
<>
<PageClient email={user.email as string} />
</>
);
return <></>;
}
4 changes: 4 additions & 0 deletions lib/dspy_trace_util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ export function processDspyTrace(trace: any): DspyTrace {
evaluated_score = attributes["dspy.evaluate.result"];
}

if (attributes["dspy.evaluate.result"]) {
evaluated_score = attributes["dspy.evaluate.result"];
}

if (resultContent) {
try {
spanResult = JSON.parse(resultContent);
Expand Down

0 comments on commit e95d88f

Please sign in to comment.