Skip to content

Commit 0f199f5

Browse files
feat(api): api update
1 parent ad82989 commit 0f199f5

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
configured_endpoints: 18
2-
openapi_spec_hash: 20f058101a252f7500803d66aff58eb3
2+
openapi_spec_hash: 153617b7252b1b12f21043b2a1246f8b
33
config_hash: 30422a4611d93ca69e4f1aff60b9ddb5

src/resources/inference-pipelines/data.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,21 @@ export namespace DataStreamParams {
118118
*/
119119
questionColumnName?: string;
120120

121+
/**
122+
* Name of the column with the session id.
123+
*/
124+
sessionIdColumnName?: string | null;
125+
121126
/**
122127
* Name of the column with the timestamps. Timestamps must be in UNIX sec format.
123128
* If not provided, the upload timestamp is used.
124129
*/
125130
timestampColumnName?: string;
131+
132+
/**
133+
* Name of the column with the user id.
134+
*/
135+
userIdColumnName?: string | null;
126136
}
127137

128138
export namespace LlmData {

tests/api-resources/inference-pipelines/data.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ describe('resource data', () => {
3737
numOfTokenColumnName: 'tokens',
3838
prompt: [{ content: '{{ user_query }}', role: 'user' }],
3939
questionColumnName: 'question',
40+
sessionIdColumnName: 'session_id',
4041
timestampColumnName: 'timestamp',
42+
userIdColumnName: 'user_id',
4143
},
4244
rows: [{ user_query: 'bar', output: 'bar', tokens: 'bar', cost: 'bar', timestamp: 'bar' }],
4345
});

0 commit comments

Comments
 (0)