OfficeDev / TeamsFx

Developer tools for building Teams apps
Other
427 stars 164 forks source link

feat(chat): improve matching prompts and logic #11404

Closed tecton closed 3 weeks ago

tecton commented 3 weeks ago
  1. Use gpt-4 when matching.
  2. Improve prompts to match sample and template.
  3. Update Chat APIs.

Related work item: https://msazure.visualstudio.com/Microsoft%20Teams%20Extensibility/_workitems/edit/27586721

codecov[bot] commented 3 weeks ago

Codecov Report

Attention: Patch coverage is 92.00000% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 87.72%. Comparing base (8c7f37e) to head (a215315). Report is 13 commits behind head on dev.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/OfficeDev/TeamsFx/pull/11404/graphs/tree.svg?width=650&height=150&src=pr&token=QQX8WVOEC3&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=OfficeDev)](https://app.codecov.io/gh/OfficeDev/TeamsFx/pull/11404?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=OfficeDev) ```diff @@ Coverage Diff @@ ## dev #11404 +/- ## ======================================= Coverage 87.71% 87.72% ======================================= Files 485 485 Lines 29226 29292 +66 Branches 5644 5717 +73 ======================================= + Hits 25637 25697 +60 - Misses 1772 1773 +1 - Partials 1817 1822 +5 ``` | [Files](https://app.codecov.io/gh/OfficeDev/TeamsFx/pull/11404?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=OfficeDev) | Coverage Δ | | |---|---|---| | [...n/src/chat/commands/create/createCommandHandler.ts](https://app.codecov.io/gh/OfficeDev/TeamsFx/pull/11404?src=pr&el=tree&filepath=packages%2Fvscode-extension%2Fsrc%2Fchat%2Fcommands%2Fcreate%2FcreateCommandHandler.ts&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=OfficeDev#diff-cGFja2FnZXMvdnNjb2RlLWV4dGVuc2lvbi9zcmMvY2hhdC9jb21tYW5kcy9jcmVhdGUvY3JlYXRlQ29tbWFuZEhhbmRsZXIudHM=) | `96.72% <ø> (ø)` | | | [packages/vscode-extension/src/chat/prompts.ts](https://app.codecov.io/gh/OfficeDev/TeamsFx/pull/11404?src=pr&el=tree&filepath=packages%2Fvscode-extension%2Fsrc%2Fchat%2Fprompts.ts&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=OfficeDev#diff-cGFja2FnZXMvdnNjb2RlLWV4dGVuc2lvbi9zcmMvY2hhdC9wcm9tcHRzLnRz) | `100.00% <100.00%> (ø)` | | | [...scode-extension/src/chat/commands/create/helper.ts](https://app.codecov.io/gh/OfficeDev/TeamsFx/pull/11404?src=pr&el=tree&filepath=packages%2Fvscode-extension%2Fsrc%2Fchat%2Fcommands%2Fcreate%2Fhelper.ts&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=OfficeDev#diff-cGFja2FnZXMvdnNjb2RlLWV4dGVuc2lvbi9zcmMvY2hhdC9jb21tYW5kcy9jcmVhdGUvaGVscGVyLnRz) | `84.11% <77.77%> (-0.80%)` | :arrow_down: | ... and [17 files with indirect coverage changes](https://app.codecov.io/gh/OfficeDev/TeamsFx/pull/11404/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=OfficeDev)