diff --git a/libs/remix-ai-core/src/types/constants.ts b/libs/remix-ai-core/src/types/constants.ts index 44ed95d55ca..e37db0c1332 100644 --- a/libs/remix-ai-core/src/types/constants.ts +++ b/libs/remix-ai-core/src/types/constants.ts @@ -6,4 +6,4 @@ export enum ModelType { CODE_COMPLETION_INSERTION = 'code_completion_insertion', } -export const COMPLETION_SYSTEM_PROMPT = "You are a Solidity AI Assistant that complete user code with provided context. You provide accurate solution and always answer as helpfully as possible, while being safe. You only provide code using this context:\n" +export const COMPLETION_SYSTEM_PROMPT = "You are a Solidity AI Assistant that completes user code with provided context. You provide accurate solution and always answer as helpfully as possible, while being safe. You only provide code using this context:\n" diff --git a/libs/remix-ai-core/src/types/models.ts b/libs/remix-ai-core/src/types/models.ts index 0f46dbd75bc..af64d2cb7ed 100644 --- a/libs/remix-ai-core/src/types/models.ts +++ b/libs/remix-ai-core/src/types/models.ts @@ -26,7 +26,7 @@ const DefaultModels = (): IModel[] => { }; const model3: IModel = { - name: 'llaama3.1_8B', + name: 'llama3.1_8B', modelOP: RemoteBackendOPModel.CODELLAMA, task: 'text-generation', modelName: 'llama3_1_8B-q4_0.gguf', @@ -36,7 +36,7 @@ const DefaultModels = (): IModel[] => { }; const model4: IModel = { - name: 'llaama3.1_8B_instruct', + name: 'llama3.1_8B_instruct', modelOP: RemoteBackendOPModel.CODELLAMA, task: 'text-generation', modelName: 'llama3_1_8B-q4_0_instruct.gguf', @@ -82,4 +82,4 @@ const GenerationParams:IParams = { terminal_output: false, } -export { DefaultModels, CompletionParams, InsertionParams, GenerationParams } \ No newline at end of file +export { DefaultModels, CompletionParams, InsertionParams, GenerationParams } diff --git a/libs/remix-ai-core/src/types/types.ts b/libs/remix-ai-core/src/types/types.ts index ecf84586a14..1e5d9fb6031 100644 --- a/libs/remix-ai-core/src/types/types.ts +++ b/libs/remix-ai-core/src/types/types.ts @@ -1,6 +1,6 @@ // model implementation for the model selection component -import exp from 'constants'; +import constants from 'constants'; import { ModelType } from './constants'; export interface IModelRequirements{ diff --git a/libs/remix-analyzer/src/solidity-analyzer/modules/abstractAstView.ts b/libs/remix-analyzer/src/solidity-analyzer/modules/abstractAstView.ts index 8af8cf79940..5434048a91f 100644 --- a/libs/remix-analyzer/src/solidity-analyzer/modules/abstractAstView.ts +++ b/libs/remix-analyzer/src/solidity-analyzer/modules/abstractAstView.ts @@ -11,7 +11,7 @@ import { type WrapFunction = ((contracts: ContractHLAst[], isSameName: boolean, version: string) => ReportObj[]) -export default class abstractAstView { +export default class AbstractAstView { contracts: ContractHLAst[] = [] currentContractIndex = -1 currentFunctionIndex = -1 @@ -91,7 +91,7 @@ export default class abstractAstView { parameters: this.getLocalParameters(node) }) } else if (node.nodeType === 'ModifierInvocation') { - if (!this.isFunctionNotModifier) throw new Error('abstractAstView.js: Found modifier invocation outside of function scope.') + if (!this.isFunctionNotModifier) throw new Error('AbstractAstView.js: Found modifier invocation outside of function scope.') this.getCurrentFunction().modifierInvocations.push(node) } else if (relevantNodeFilter(node)) { let scope: FunctionHLAst | ModifierHLAst | ContractHLAst = (this.isFunctionNotModifier) ? this.getCurrentFunction() : this.getCurrentModifier() @@ -130,7 +130,7 @@ export default class abstractAstView { if (inheritsFrom) { currentContract.stateVariables = currentContract.stateVariables.concat(inheritsFrom.stateVariables) } else { - console.log('abstractAstView.js: could not find contract definition inherited from ' + inheritsFromName) + console.log('AbstractAstView.js: could not find contract definition inherited from ' + inheritsFromName) } }) } @@ -138,7 +138,7 @@ export default class abstractAstView { private setCurrentContract (contract: ContractHLAst): void { const name: string = getContractName(contract.node) if (this.contracts.map((c: ContractHLAst) => getContractName(c.node)).filter((n) => n === name).length > 0) { - console.log('abstractAstView.js: two or more contracts with the same name detected, import aliases not supported at the moment') + console.log('AbstractAstView.js: two or more contracts with the same name detected, import aliases not supported at the moment') this.multipleContractsWithSameName = true } this.currentContractIndex = (this.contracts.push(contract) - 1)