Skip to content

Commit

Permalink
chore: migrate to new extension api paradigm
Browse files Browse the repository at this point in the history
  • Loading branch information
hiro-v committed Dec 12, 2023
1 parent bb2984d commit 0cd4106
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extensions/inference-triton-trtllm-extension/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export default class JanInferenceTritonTrtLLMExtension implements InferenceExten
static async writeDefaultEngineSettings() {
try {
const engine_json = join(JanInferenceTritonTrtLLMExtension._homeDir, JanInferenceTritonTrtLLMExtension._engineMetadataFileName)
if (await fs.checkFileExists(engine_json)) {
if (await fs.exists(engine_json)) {
JanInferenceTritonTrtLLMExtension._engineSettings = JSON.parse(await fs.readFile(engine_json))
}
else {
Expand Down Expand Up @@ -123,7 +123,7 @@ export default class JanInferenceTritonTrtLLMExtension implements InferenceExten
* @param {MessageRequest} data - The data for the inference request.
* @returns {Promise<any>} A promise that resolves with the inference response.
*/
async inferenceRequest(data: MessageRequest): Promise<ThreadMessage> {
async inference(data: MessageRequest): Promise<ThreadMessage> {
const timestamp = Date.now();
const message: ThreadMessage = {
thread_id: data.threadId,
Expand Down

0 comments on commit 0cd4106

Please sign in to comment.