Skip to content

Commit

Permalink
v0.3.100
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Feb 10, 2025
1 parent e6ee524 commit 31dc65f
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@premai/prem-sdk",
"version": "0.3.99",
"version": "0.3.100",
"license": "MIT",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
Expand Down
29 changes: 29 additions & 0 deletions src/types/api.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -807,6 +807,16 @@ export interface components {
trace_id: string;
project_id: number;
model_id: number;
messages?: ({
/**
* @description * `user` - user
* * `assistant` - assistant
* * `system` - system
* @enum {string}
*/
role?: "user" | "assistant" | "system";
content?: string;
})[];
feedback: ({
positive: boolean;
used_datapoint_messages: boolean;
Expand Down Expand Up @@ -1875,7 +1885,16 @@ export interface operations {
v1_traces_list: {
parameters: {
query: {
admin_filter?: "ADMIN_ONLY";
date_filter?: "last_day" | "last_hour" | "last_month" | "last_week" | "last_year";
/** @description Format: YYYY/MM/DD */
from_date?: string;
project_id: number;
search?: string;
/** @description Sort field (-field for descending) */
sort?: string;
/** @description Format: YYYY/MM/DD */
to_date?: string;
};
};
responses: {
Expand All @@ -1886,6 +1905,16 @@ export interface operations {
trace_id: string;
project_id: number;
model_id: number;
messages?: ({
/**
* @description * `user` - user
* * `assistant` - assistant
* * `system` - system
* @enum {string}
*/
role?: "user" | "assistant" | "system";
content?: string;
})[];
feedback: ({
positive: boolean;
used_datapoint_messages: boolean;
Expand Down
10 changes: 10 additions & 0 deletions src/types/apiComponents.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -966,6 +966,16 @@ export type TraceList = {
trace_id: string
project_id: number
model_id: number
messages?: {
/**
* * `user` - user
* * `assistant` - assistant
* * `system` - system
*/
role?: "user" | "assistant" | "system"
content?: string
[k: string]: unknown
}[]
feedback: {
positive: boolean
used_datapoint_messages: boolean
Expand Down

0 comments on commit 31dc65f

Please sign in to comment.