Skip to content

Commit

Permalink
Improve mock prompt processor query match
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew Cherniavskii <andrew.cherniavskii@gmail.com>
Signed-off-by: Armin Mehinovic <4390250+arminmeh@users.noreply.github.com>
  • Loading branch information
arminmeh and cherniavskii authored Nov 20, 2024
1 parent 9a2b7fb commit 0151c49
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { unstable_PromptResponse as PromptResponse } from '@mui/x-data-grid-prem
import { mockPrompts } from '../constants/prompts';

export const mockPromptResolver = (_: string, query: string) => {
const resolved = mockPrompts.get(query);
const resolved = mockPrompts.get(query.toLowerCase().trim());

return new Promise<PromptResponse>((resolve, reject) => {
setTimeout(() => {
Expand Down

0 comments on commit 0151c49

Please sign in to comment.