diff --git a/.prettierrc b/.prettierrc index 222861c34..d3be6d22e 100644 --- a/.prettierrc +++ b/.prettierrc @@ -1,4 +1,5 @@ { "tabWidth": 2, - "useTabs": false + "useTabs": false, + "trailingComma": "all" } diff --git a/core/config/load.ts b/core/config/load.ts index cdd91aacf..03bd5b416 100644 --- a/core/config/load.ts +++ b/core/config/load.ts @@ -334,10 +334,10 @@ function finalToBrowserConfig( })), systemMessage: final.systemMessage, completionOptions: final.completionOptions, - slashCommands: final.slashCommands?.map((m) => ({ - name: m.name, - description: m.description, - options: m.params, + slashCommands: final.slashCommands?.map((s) => ({ + name: s.name, + description: s.description, + params: s.params, //PZTODO: is this why params aren't referenced properly by slash commands? })), contextProviders: final.contextProviders?.map((c) => c.description), disableIndexing: final.disableIndexing,