From b58e6b50abd5b1ebc4c9025296604dbb2ccd7a1e Mon Sep 17 00:00:00 2001 From: chloefeal <188809157+chloefeal@users.noreply.github.com> Date: Tue, 14 Jan 2025 22:21:48 +0800 Subject: [PATCH] Update libs/remix-ai-core/src/inferencers/remote/remoteInference.ts Signed-off-by: chloefeal <188809157+chloefeal@users.noreply.github.com> --- libs/remix-ai-core/src/inferencers/remote/remoteInference.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/remix-ai-core/src/inferencers/remote/remoteInference.ts b/libs/remix-ai-core/src/inferencers/remote/remoteInference.ts index c6ad381618..dbee3e37ab 100644 --- a/libs/remix-ai-core/src/inferencers/remote/remoteInference.ts +++ b/libs/remix-ai-core/src/inferencers/remote/remoteInference.ts @@ -1,6 +1,6 @@ import { ICompletions, IParams, AIRequestType, RemoteBackendOPModel, JsonStreamParser } from "../../types/types"; import { GenerationParams, CompletionParams, InsertionParams } from "../../types/models"; -import { buildSolgptPromt } from "../../prompts/promptBuilder"; +import { buildSolgptPrompt } from "../../prompts/promptBuilder"; import EventEmitter from "events"; import { ChatHistory } from "../../prompts/chat"; import axios from 'axios'; @@ -127,7 +127,7 @@ export class RemoteInferencer implements ICompletions { } async solidity_answer(prompt, options:IParams=GenerationParams): Promise { - const main_prompt = buildSolgptPromt(prompt, this.model_op) + const main_prompt = buildSolgptPrompt(prompt, this.model_op) const payload = { 'prompt': main_prompt, "endpoint":"solidity_answer", ...options } if (options.stream_result) return this._streamInferenceRequest(payload, AIRequestType.GENERAL) else return this._makeRequest(payload, AIRequestType.GENERAL)