Skip to content

Commit

Permalink
Update promptBuilder.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Guayaba221 authored and Aniket-Engg committed Dec 20, 2024
1 parent 3ca2f94 commit 07fa4b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/remix-ai-core/src/prompts/promptBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const PromptBuilder = (inst, answr, modelop) => {

export const buildSolgptPromt = (userPrompt:string, modelOP:RemoteBackendOPModel) => {
if (modelOP === undefined) {
console.log('WARNING: modelOP is undefined. Provide a valide model OP for chat history')
console.log('WARNING: modelOP is undefined. Provide a valid model OP for chat history')
return userPrompt
}
if (ChatHistory.getHistory().length === 0){
Expand All @@ -27,4 +27,4 @@ export const buildSolgptPromt = (userPrompt:string, modelOP:RemoteBackendOPModel
newPrompt = "sol-gpt " + newPrompt + PromptBuilder(parsedPrompt, "", modelOP)
return newPrompt
}
}
}

0 comments on commit 07fa4b8

Please sign in to comment.