Skip to content

Commit 53a7dc9

Browse files
committed
Add OpenAIUsageDebuggingPlugin snippet. Closes #329
Closes #329
1 parent 0762613 commit 53a7dc9

File tree

4 files changed

+25
-0
lines changed

4 files changed

+25
-0
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99
1010
## [1.7.1] - Unreleased
1111

12+
### Added:
13+
14+
- Snippets: Added `devproxy-plugin-har-generator` - HarGeneratorPlugin instance
15+
- Snippets: Added `devproxy-plugin-har-generator-config` - HarGeneratorPlugin config section
16+
- Snippets: Added `devproxy-plugin-openai-usage-debugging` - OpenAIUsageDebuggingPlugin instance
17+
1218
### Changed:
1319

1420
- Snippets: All snippets that reference schemas updated to use `v1.3.0` schema

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ See [Dev Proxy MCP Server](https://github.com/dev-proxy-tools/mcp) for more info
163163
| `devproxy-plugin-openai-mock-response` | OpenAIMockResponsePlugin instance |
164164
| `devproxy-plugin-openai-telemetry` | OpenAITelemetryPlugin instance |
165165
| `devproxy-plugin-openai-telemetry-config` | OpenAITelemetryPlugin config section |
166+
| `devproxy-plugin-openai-usage-debugging` | OpenAIUsageDebuggingPlugin instance |
166167
| `devproxy-plugin-open-api-spec-generator` | OpenApiSpecGeneratorPlugin instance |
167168
| `devproxy-plugin-open-api-spec-generator-config` | OpenApiSpecGeneratorPlugin config section |
168169
| `devproxy-plugin-rate-limiting` | MockResponsePlugin instance |

src/constants.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,9 @@ export const pluginSnippets: PluginSnippets = {
195195
required: true,
196196
}
197197
},
198+
OpenAIUsageDebuggingPlugin: {
199+
instance: 'devproxy-plugin-openai-usage-debugging',
200+
},
198201
OpenApiSpecGeneratorPlugin: {
199202
instance: 'devproxy-plugin-open-api-spec-generator',
200203
config: {
@@ -369,6 +372,10 @@ export const pluginDocs: PluginDocs = {
369372
name: 'OpenAI Telemetry Plugin',
370373
url: 'https://learn.microsoft.com/microsoft-cloud/dev/dev-proxy/technical-reference/openaitelemetryplugin',
371374
},
375+
OpenAIUsageDebuggingPlugin: {
376+
name: 'OpenAI Usage Debugging Plugin',
377+
url: 'https://learn.microsoft.com/microsoft-cloud/dev/dev-proxy/technical-reference/openaiusagedebuggingplugin',
378+
},
372379
OpenApiSpecGeneratorPlugin: {
373380
name: 'Open API Spec Generator Plugin',
374381
url: 'https://learn.microsoft.com/microsoft-cloud/dev/dev-proxy/technical-reference/openapispecgeneratorplugin',

src/snippets/json-snippets.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -975,6 +975,17 @@
975975
],
976976
"description": "OpenAITelemetryPlugin config section"
977977
},
978+
"OpenAIUsageDebuggingPlugin": {
979+
"prefix": "devproxy-plugin-openai-usage-debugging",
980+
"body": [
981+
"{",
982+
"\t\"name\": \"OpenAIUsageDebuggingPlugin\",",
983+
"\t\"enabled\": true,",
984+
"\t\"pluginPath\": \"~appFolder/plugins/DevProxy.Plugins.dll\"",
985+
"}"
986+
],
987+
"description": "OpenAIUsageDebuggingPlugin instance"
988+
},
978989
"OpenApiSpecGeneratorPlugin": {
979990
"prefix": "devproxy-plugin-open-api-spec-generator",
980991
"body": [

0 commit comments

Comments
 (0)