From be9a02362803d31e7331b0391353f169f33fff86 Mon Sep 17 00:00:00 2001 From: chloefeal <188809157+chloefeal@users.noreply.github.com> Date: Tue, 14 Jan 2025 22:21:38 +0800 Subject: [PATCH 1/4] Update libs/remix-ai-core/src/prompts/promptBuilder.ts Signed-off-by: chloefeal <188809157+chloefeal@users.noreply.github.com> --- libs/remix-ai-core/src/prompts/promptBuilder.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/remix-ai-core/src/prompts/promptBuilder.ts b/libs/remix-ai-core/src/prompts/promptBuilder.ts index fea867e36c..e22088bc6a 100644 --- a/libs/remix-ai-core/src/prompts/promptBuilder.ts +++ b/libs/remix-ai-core/src/prompts/promptBuilder.ts @@ -7,7 +7,7 @@ export const PromptBuilder = (inst, answr, modelop) => { if (modelop === RemoteBackendOPModel.MISTRAL) return "" } -export const buildSolgptPromt = (userPrompt:string, modelOP:RemoteBackendOPModel) => { +export const buildSolgptPrompt = (userPrompt:string, modelOP:RemoteBackendOPModel) => { if (modelOP === undefined) { console.log('WARNING: modelOP is undefined. Provide a valid model OP for chat history') return userPrompt 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 2/4] 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) From 9f4a40f3721ebc4b33c1579c65ac14fa86dcc92e Mon Sep 17 00:00:00 2001 From: chloefeal <188809157+chloefeal@users.noreply.github.com> Date: Tue, 14 Jan 2025 22:21:58 +0800 Subject: [PATCH 3/4] Update libs/remix-ai-core/src/index.ts Signed-off-by: chloefeal <188809157+chloefeal@users.noreply.github.com> --- libs/remix-ai-core/src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/remix-ai-core/src/index.ts b/libs/remix-ai-core/src/index.ts index fe54a57f2f..e6368183cd 100644 --- a/libs/remix-ai-core/src/index.ts +++ b/libs/remix-ai-core/src/index.ts @@ -6,7 +6,7 @@ import { IModel, IModelResponse, IModelRequest, InferenceModel, ICompletions, import { ModelType } from './types/constants' import { DefaultModels, InsertionParams, CompletionParams, GenerationParams } from './types/models' import { getCompletionPrompt, getInsertionPrompt } from './prompts/completionPrompts' -import { buildSolgptPromt, PromptBuilder } from './prompts/promptBuilder' +import { buildSolgptPrompt, PromptBuilder } from './prompts/promptBuilder' import { RemoteInferencer } from './inferencers/remote/remoteInference' import { ChatHistory } from './prompts/chat' import { downloadLatestReleaseExecutable } from './helpers/inferenceServerReleases' @@ -14,7 +14,7 @@ import { downloadLatestReleaseExecutable } from './helpers/inferenceServerReleas export { IModel, IModelResponse, IModelRequest, InferenceModel, ModelType, DefaultModels, ICompletions, IParams, IRemoteModel, - getCompletionPrompt, getInsertionPrompt, IStreamResponse, buildSolgptPromt, + getCompletionPrompt, getInsertionPrompt, IStreamResponse, buildSolgptPrompt, RemoteInferencer, InsertionParams, CompletionParams, GenerationParams, ChatEntry, AIRequestType, RemoteBackendOPModel, ChatHistory, downloadLatestReleaseExecutable } From 38528a9eb4de0cc29e7d518dfbc56e5b4b17da96 Mon Sep 17 00:00:00 2001 From: chloefeal <188809157+chloefeal@users.noreply.github.com> Date: Tue, 14 Jan 2025 22:22:05 +0800 Subject: [PATCH 4/4] Update apps/remixdesktop/src/lib/InferenceServerManager.ts Signed-off-by: chloefeal <188809157+chloefeal@users.noreply.github.com> --- apps/remixdesktop/src/lib/InferenceServerManager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/remixdesktop/src/lib/InferenceServerManager.ts b/apps/remixdesktop/src/lib/InferenceServerManager.ts index 4587e822db..fa928f2672 100644 --- a/apps/remixdesktop/src/lib/InferenceServerManager.ts +++ b/apps/remixdesktop/src/lib/InferenceServerManager.ts @@ -6,7 +6,7 @@ import { EventEmitter } from 'events'; import { ICompletions, IModel, IParams, InsertionParams, CompletionParams, GenerationParams, ModelType, AIRequestType, IStreamResponse, ChatHistory, downloadLatestReleaseExecutable, - buildSolgptPromt } from "@remix/remix-ai-core" + buildSolgptPrompt } from "@remix/remix-ai-core" import { platform } from 'os'; class ServerStatusTimer {