@vedangiitb/qwintly-core 1.4.10 → 1.4.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -5,7 +5,7 @@ export class GenTokensRepository extends DBRepository {
|
|
|
5
5
|
p_gen_id: sessionId,
|
|
6
6
|
p_input_tokens: input_tokens,
|
|
7
7
|
p_output_tokens: output_tokens,
|
|
8
|
-
|
|
8
|
+
p_model: model,
|
|
9
9
|
});
|
|
10
10
|
if (error) {
|
|
11
11
|
console.error(`Failed calling persist_gen_tokens RPC: ${error.message}`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"genTokens.repository.js","sourceRoot":"","sources":["../../src/repository/genTokens.repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,MAAM,OAAO,mBAAoB,SAAQ,YAAY;IAC5C,KAAK,CAAC,gBAAgB,CAC3B,SAAiB,EACjB,YAAoB,EACpB,aAAqB,EACrB,KAAa;QAEb,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,oBAAoB,EAAE;YAC5D,QAAQ,EAAE,SAAS;YACnB,cAAc,EAAE,YAAY;YAC5B,eAAe,EAAE,aAAa;YAC9B,
|
|
1
|
+
{"version":3,"file":"genTokens.repository.js","sourceRoot":"","sources":["../../src/repository/genTokens.repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,MAAM,OAAO,mBAAoB,SAAQ,YAAY;IAC5C,KAAK,CAAC,gBAAgB,CAC3B,SAAiB,EACjB,YAAoB,EACpB,aAAqB,EACrB,KAAa;QAEb,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,oBAAoB,EAAE;YAC5D,QAAQ,EAAE,SAAS;YACnB,cAAc,EAAE,YAAY;YAC5B,eAAe,EAAE,aAAa;YAC9B,OAAO,EAAE,KAAK;SACf,CAAC,CAAC;QAEH,IAAI,KAAK,EAAE,CAAC;YACV,OAAO,CAAC,KAAK,CAAC,0CAA0C,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;QAC3E,CAAC;IACH,CAAC;CACF","sourcesContent":["import { DBRepository } from \"./repository.js\";\r\n\r\nexport class GenTokensRepository extends DBRepository {\r\n public async persistGenTokens(\r\n sessionId: string,\r\n input_tokens: number,\r\n output_tokens: number,\r\n model: string,\r\n ): Promise<void> {\r\n const { error } = await this.client.rpc(\"persist_gen_tokens\", {\r\n p_gen_id: sessionId,\r\n p_input_tokens: input_tokens,\r\n p_output_tokens: output_tokens,\r\n p_model: model,\r\n });\r\n\r\n if (error) {\r\n console.error(`Failed calling persist_gen_tokens RPC: ${error.message}`);\r\n }\r\n }\r\n}\r\n"]}
|