File tree Expand file tree Collapse file tree 4 files changed +41
-0
lines changed
Expand file tree Collapse file tree 4 files changed +41
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1313
1414- Code actions: Support for JSONC files
1515- Code lens: Support for JSONC files
16+ - Snippets: Added ` devproxy-plugin-language-model-failure ` - LanguageModelFailurePlugin instance
17+ - Snippets: Added ` devproxy-plugin-language-model-failure-config ` - LanguageModelFailurePlugin config section
1618
1719### Changed:
1820
Original file line number Diff line number Diff line change @@ -138,6 +138,8 @@ See [Dev Proxy MCP Server](https://github.com/dev-proxy-tools/mcp) for more info
138138| ` devproxy-plugin-http-file-generator-config ` | HttpFileGeneratorPlugin config section |
139139| ` devproxy-plugin-latency ` | LatencyPlugin instance |
140140| ` devproxy-plugin-latency-config ` | LatencyPlugin config section |
141+ | ` devproxy-plugin-language-model-failure ` | LanguageModelFailurePlugin instance |
142+ | ` devproxy-plugin-language-model-failure-config ` | LanguageModelFailurePlugin config section |
141143| ` devproxy-plugin-minimal-csom-permissions ` | MinimalCsomPermissionsPlugin instance |
142144| ` devproxy-plugin-minimal-csom-permissions-config ` | MinimalCsomPermissionsPlugin config section |
143145| ` devproxy-plugin-minimal-permissions ` | MinimalPermissionsPlugin instance |
Original file line number Diff line number Diff line change @@ -111,6 +111,13 @@ export const pluginSnippets: PluginSnippets = {
111111 required : false ,
112112 }
113113 } ,
114+ LanguageModelFailurePlugin : {
115+ instance : 'devproxy-plugin-language-model-failure' ,
116+ config : {
117+ name : 'devproxy-plugin-language-model-failure-config' ,
118+ required : true ,
119+ }
120+ } ,
114121 LatencyPlugin : {
115122 instance : 'devproxy-plugin-latency' ,
116123 config : {
@@ -290,6 +297,10 @@ export const pluginDocs: PluginDocs = {
290297 name : 'HTTP File Generator Plugin' ,
291298 url : 'https://learn.microsoft.com/microsoft-cloud/dev/dev-proxy/technical-reference/httpfilegeneratorplugin' ,
292299 } ,
300+ LanguageModelFailurePlugin : {
301+ name : 'Language Model Failure Plugin' ,
302+ url : 'https://learn.microsoft.com/microsoft-cloud/dev/dev-proxy/technical-reference/languagemodelfailureplugin' ,
303+ } ,
293304 LatencyPlugin : {
294305 name : 'Latency Plugin' ,
295306 url : 'https://learn.microsoft.com/microsoft-cloud/dev/dev-proxy/technical-reference/latencyplugin' ,
Original file line number Diff line number Diff line change 707707 ],
708708 "description" : " LatencyPlugin config section"
709709 },
710+ "LanguageModelFailurePlugin" : {
711+ "prefix" : " devproxy-plugin-language-model-failure" ,
712+ "body" : [
713+ " {" ,
714+ " \t\" name\" : \" LanguageModelFailurePlugin\" ," ,
715+ " \t\" enabled\" : true," ,
716+ " \t\" pluginPath\" : \" ~appFolder/plugins/DevProxy.Plugins.dll\" ," ,
717+ " \t\" configSection\" : \" languageModelFailurePlugin\" " ,
718+ " }"
719+ ],
720+ "description" : " LanguageModelFailurePlugin instance"
721+ },
722+ "LanguageModelFailurePluginConfig" : {
723+ "prefix" : " devproxy-plugin-language-model-failure-config" ,
724+ "body" : [
725+ " \" languageModelFailurePlugin\" : {" ,
726+ " \t\"\\ $schema\" : \" https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.0.0/languagemodelfailureplugin.schema.json\" ," ,
727+ " \t\" rate\" : 20," ,
728+ " \t\" failures\" : [" ,
729+ " \t\t\" rate-limit-reached\" ," ,
730+ " \t\t\" quota-exceeded\" " ,
731+ " \t ]" ,
732+ " }"
733+ ],
734+ "description" : " LanguageModelFailurePlugin config section"
735+ },
710736 "MinimalCsomPermissionsPlugin" : {
711737 "prefix" : " devproxy-plugin-minimal-csom-permissions" ,
712738 "body" : [
You can’t perform that action at this time.
0 commit comments