Skip to content

Commit 41f1dd4

Browse files
authored
Add OpenAIMockResponsePlugin snippet. Closes #97 (#104)
Closes #97
1 parent 97d51de commit 41f1dd4

File tree

4 files changed

+20
-0
lines changed

4 files changed

+20
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1313
- Snippets: `devproxy-plugin-api-center-minimal-permissions-config` - ApiCenterMinimalPermissionsPlugin config section
1414
- Snippets: `devproxy-plugin-http-file-generator` - HttpFileGeneratorPlugin instance
1515
- Snippets: `devproxy-plugin-http-file-generator-config` - HttpFileGeneratorPlugin config section
16+
- Snippets: `devproxy-plugin-openai-mock-response` - OpenAIMockResponsePlugin instance
1617

1718
### Changed:
1819

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ The following sections describe the features that the extension contributes to V
102102
| `devproxy-plugin-mock-response-schema` | MockResponsePlugin schema |
103103
| `devproxy-plugin-odata-paging-guidance` | ODataPagingGuidancePlugin instance |
104104
| `devproxy-plugin-graph-odsp-search-guidance` | ODSPSearchGuidancePlugin instance |
105+
| `devproxy-plugin-openai-mock-response` | OpenAIMockResponsePlugin instance |
105106
| `devproxy-plugin-open-api-spec-generator` | OpenApiSpecGeneratorPlugin instance |
106107
| `devproxy-plugin-rate-limiting` | MockResponsePlugin instance |
107108
| `devproxy-plugin-rate-limiting-config` | RateLimitingPlugin config section |

src/constants.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,9 @@ export const pluginSnippets: PluginSnippets = {
133133
ODSPSearchGuidancePlugin: {
134134
instance: 'devproxy-plugin-odsp-search-guidance',
135135
},
136+
OpenAIMockResponsePlugin: {
137+
instance: 'devproxy-plugin-openai-mock-response',
138+
},
136139
OpenApiSpecGeneratorPlugin: {
137140
instance: 'devproxy-plugin-openapi-doc-generator',
138141
},
@@ -254,6 +257,10 @@ export const pluginDocs: PluginDocs = {
254257
name: 'ODSP Search Guidance Plugin',
255258
url: 'https://learn.microsoft.com/microsoft-cloud/dev/dev-proxy/technical-reference/odspsearchguidanceplugin',
256259
},
260+
OpenAIMockResponsePlugin: {
261+
name: 'OpenAI Mock Response Plugin',
262+
url: 'https://learn.microsoft.com/microsoft-cloud/dev/dev-proxy/technical-reference/openaimockresponseplugin',
263+
},
257264
OpenApiSpecGeneratorPlugin: {
258265
name: 'Open API Spec Generator Plugin',
259266
url: 'https://learn.microsoft.com/microsoft-cloud/dev/dev-proxy/technical-reference/openapispecgeneratorplugin',

src/snippets.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -644,6 +644,17 @@
644644
],
645645
"description": "ODSPSearchGuidancePlugin instance"
646646
},
647+
"OpenAIMockResponsePlugin": {
648+
"prefix": "devproxy-plugin-openai-mock-response",
649+
"body": [
650+
"{",
651+
"\t\"name\": \"OpenAIMockResponsePlugin\",",
652+
"\t\"enabled\": true,",
653+
"\t\"pluginPath\": \"~appFolder/plugins/dev-proxy-plugins.dll\"",
654+
"}"
655+
],
656+
"description": "OpenAIMockResponsePlugin instance"
657+
},
647658
"OpenApiSpecGeneratorPlugin": {
648659
"prefix": "devproxy-plugin-open-api-spec-generator",
649660
"body": [

0 commit comments

Comments
 (0)