Skip to content

Commit

Permalink
Fix typo in translator request prompt (#501)
Browse files Browse the repository at this point in the history
This pull request includes a small but important correction to a typo in
the `createJsonTranslatorWithValidator` function within the
`jsonTranslator.ts` file. The typo fix improves the clarity of the
message provided to the LLM.

Typo correction:

*
[`ts/packages/commonUtils/src/jsonTranslator.ts`](diffhunk://#diff-bb6ecd66e24575fbb78e5f5d6474b8feff1845f9e15c2fb23450fb3fb5fe7f29L339-R339):
Corrected the word "previoiusly" to "previously" in the user request
translation message.
  • Loading branch information
thegovind authored Dec 16, 2024
1 parent 2511248 commit b3adea3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ts/packages/commonUtils/src/jsonTranslator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ export function createJsonTranslatorWithValidator<T extends object>(
`\`\`\`\n${validator.getSchemaText()}\`\`\`\n` +
`The following is the latest user request:\n` +
`"""\n${request}\n"""\n` +
`Based on all available information in our chat history including images previoiusly provided, the following is the latest user request translated into a JSON object with 2 spaces of indentation and no properties with the value undefined:\n`
`Based on all available information in our chat history including images previously provided, the following is the latest user request translated into a JSON object with 2 spaces of indentation and no properties with the value undefined:\n`
);
};
return translator;
Expand Down

0 comments on commit b3adea3

Please sign in to comment.