Skip to content

Commit

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

* Bug fix

* chore: add docker cmd

* Compatibility fixes for SDK version 2.0.0 (#69)

* Pagination bug

* Bug fix

* Fix for schema changes

* Render tool calling

* Support for Langgraph, Qdrant & Groq  (#73)

* Pagination bug

* Bug fix

* Add langgraph support

* QDrant support

* Add Groq support

* update README

* update README

* feat: optimise docker image for self host setup

* adding api access to traces endpoint

* clean up

* refactor

* feat: add clickhouse db create on app start (#79)

* docs: add railway deploy, fix sdk badges (#81)

* untrack .env

* Revert "untrack .env"

This reverts commit 4551d7e.

* Playground and Prompt Management (#83)

* Pagination bug

* Bug fix

* Playground - basic implementation

* Playground - streaming and nonstreaming

* Move playground inside project

* API key flow

* Api key

* Playground refactor

* Add chat hookup

* anthropic streaming support

* Bug fixes to openai playground

* Anthropic bugfixes

* Anthropic bugfix

* Cohere first iteration

* Cohere role fixes

* Cohere api fix

* Parallel running

* Playground cost calculation non streaming

* playground - streaming token calculation

* latency and cost

* Support for Groq

* Add model name

* Prompt management views

* Remove current promptset flow

* Prompt management API hooks

* Prompt registry final

* Playground bugfixes

* Bug fix playground

* Rearrange project nav

* Fix playground

* Fix prompts

* Bugfixes

* Minor fix

* Prompt versioning bugfix

* Bugfix

* fix: clickhouse table find queries (#82)

* Fix to surface multiple LLM requests inside LLM View (#84)

* Pagination bug

* Bug fix

* Fix for surfacing multiple LLM requests in LLMView

* Minor bugfixes (#86)

* Pagination bug

* Bug fix

* Bugfixes

* api to fetch promptset with prompt filters

* bug fixes

* fix invalid redirect

* fix invalid status code

* Project Switcher (#90)

* Pagination bug

* Bug fix

* Project switcher

* Feat: dataset download (#60)

* API: download dataset

* API: Download dataset

* updated download-dataset api

* Updated: download_dataset api

* Updated download dataset API

* Updated Download API: changed Response to Next Response, add a condition to ensure max page size is 500

* updated the download-dataset API: fixed the format and removed redundant lines of code

* Updated download_daatset API: file name and removed 'id' param

* Added the Download dataset button.

* Merged developemnt into my branch

* Updated button size

* Fixes

---------

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

* Update prompt registry with instructions to fetch prompts (#91)

* Pagination bug

* Bug fix

* Update prompt registry

* Minor bugfix (#94)

* Pagination bug

* Bug fix

* Minor bugfix

* chore: update github repo badges

* optimizing token count function

* Add GPT4-O Pricing and Playground (#98)

* Pagination bug

* Bug fix

* Add GPT4-O support

* Add GPT4-O support

* Update cost

* Dylan/s3en 2234 add perplexity support to playground (#89)

* adding perplexity to playground types

* adding ui stuff:'

* adding perplexity chat api

* fixing perplexity model dropdown

---------

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

* api changes

* add api access to get api and fix all bugs

* bug fix

* bug fix

* updating descriptions to optional

* prio python

* cleanup and fixes

* more bug fixes

* more fixes

* remove console log

* updating trace_service functions

* add migration

* add format function, updating from day to hour

* adding dropwdown menu

* updating query key

* updating query keys v2

* clean up

* fix bug

* Minor bugfix (#102)

* Pagination bug

* Bug fix

* Minor bugfix

* fixes

* Bug fixes to Evaluations  (#111)

* Pagination bug

* Bug fix

* Bug fixes to evals v2

* Minor fix

* upgrading tiktoken, adding omni to pricing (#110)

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

* Update package

* Dataset bugfix (#113)

* Pagination bug

* Bug fix

* Dataset bugfix

* Minor linking fix (#114)

* Pagination bug

* Bug fix

* Dataset bugfix

* Minor fix

---------

Co-authored-by: Darshit Suratwala <[email protected]>
Co-authored-by: darshit-s3 <[email protected]>
Co-authored-by: dylan <[email protected]>
Co-authored-by: dylanzuber-scale3 <[email protected]>
Co-authored-by: Rohit Kadhe <[email protected]>
Co-authored-by: Rohit Kadhe <[email protected]>
Co-authored-by: MayuriS24 <[email protected]>
  • Loading branch information
8 people authored May 21, 2024
1 parent eefb47a commit 839de21
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 7 deletions.
2 changes: 1 addition & 1 deletion app/(protected)/projects/page-client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ function ProjectCard({
)}
<Edit teamId={teamId} project={project} />
</div>
<Link href={`/project/${project.id}/playground`}>
<Link href={`/project/${project.id}/metrics`}>
<Card className="w-full md:w-[325px] h-[180px] shadow-md hover:cursor-pointer transition-all duration-200 ease-in-out border-muted hover:border-muted-foreground border-2 hover:shadow-lg hover:bg-muted">
<CardHeader>
<CardTitle className="capitalize w-1/2 truncate">
Expand Down
19 changes: 13 additions & 6 deletions components/evaluate/evaluation-row.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,15 +133,22 @@ export default function EvaluationRow({
(prompt: any) => prompt.role === "user"
);
if (!input) return;
let output =
responses?.length > 0
? JSON.parse(responses)[0]?.message?.content ||
JSON.parse(responses)[0]?.text ||
JSON.parse(responses)[0]?.content
: "";

// if output is object, convert to string
if (typeof output === "object") {
output = JSON.stringify(output);
}

const checkedData = {
spanId: span.span_id,
input: input?.content || "",
output:
responses?.length > 0
? JSON.parse(responses)[0]?.message?.content ||
JSON.parse(responses)[0]?.text ||
JSON.parse(responses)[0]?.content
: "",
output: output,
};
onCheckedChange(checkedData, state);
}}
Expand Down
7 changes: 7 additions & 0 deletions components/project/dataset/create-data.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,13 @@ export function CreateData({
<form
onSubmit={CreateDataForm.handleSubmit(async (data) => {
try {
// stringify data.input, data.output if it's an object
if (typeof data.input === "object") {
data.input = JSON.stringify(data.input);
}
if (typeof data.output === "object") {
data.output = JSON.stringify(data.output);
}
setBusy(true);
await fetch("/api/data", {
method: "POST",
Expand Down
7 changes: 7 additions & 0 deletions components/project/dataset/edit-data.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,13 @@ export function EditData({
<form
onSubmit={EditDataForm.handleSubmit(async (data) => {
try {
// stringify data.input, data.output if it's an object
if (typeof data.input === "object") {
data.input = JSON.stringify(data.input);
}
if (typeof data.output === "object") {
data.output = JSON.stringify(data.output);
}
setBusy(true);
await fetch("/api/data", {
method: "PUT",
Expand Down

0 comments on commit 839de21

Please sign in to comment.