diff --git a/CHANGELOG.md b/CHANGELOG.md index 3c4da3c..d9f71cc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,11 +9,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [1.7.1] - Unreleased -### Changed: +### Added: -- Snippets: All snippets that reference schemas updated to use `v1.3.0` schema - Snippets: Added `devproxy-plugin-har-generator` - HarGeneratorPlugin instance - Snippets: Added `devproxy-plugin-har-generator-config` - HarGeneratorPlugin config section +- Snippets: Added `devproxy-plugin-openai-usage-debugging` - OpenAIUsageDebuggingPlugin instance + +### Changed: + +- Snippets: All snippets that reference schemas updated to use `v1.3.0` schema ## [1.6.0] - 2025-10-13 diff --git a/README.md b/README.md index 2c1983e..9a85780 100644 --- a/README.md +++ b/README.md @@ -163,6 +163,7 @@ See [Dev Proxy MCP Server](https://github.com/dev-proxy-tools/mcp) for more info | `devproxy-plugin-openai-mock-response` | OpenAIMockResponsePlugin instance | | `devproxy-plugin-openai-telemetry` | OpenAITelemetryPlugin instance | | `devproxy-plugin-openai-telemetry-config` | OpenAITelemetryPlugin config section | +| `devproxy-plugin-openai-usage-debugging` | OpenAIUsageDebuggingPlugin instance | | `devproxy-plugin-open-api-spec-generator` | OpenApiSpecGeneratorPlugin instance | | `devproxy-plugin-open-api-spec-generator-config` | OpenApiSpecGeneratorPlugin config section | | `devproxy-plugin-rate-limiting` | MockResponsePlugin instance | diff --git a/src/constants.ts b/src/constants.ts index 9b3335c..00739a1 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -195,6 +195,9 @@ export const pluginSnippets: PluginSnippets = { required: true, } }, + OpenAIUsageDebuggingPlugin: { + instance: 'devproxy-plugin-openai-usage-debugging', + }, OpenApiSpecGeneratorPlugin: { instance: 'devproxy-plugin-open-api-spec-generator', config: { @@ -369,6 +372,10 @@ export const pluginDocs: PluginDocs = { name: 'OpenAI Telemetry Plugin', url: 'https://learn.microsoft.com/microsoft-cloud/dev/dev-proxy/technical-reference/openaitelemetryplugin', }, + OpenAIUsageDebuggingPlugin: { + name: 'OpenAI Usage Debugging Plugin', + url: 'https://learn.microsoft.com/microsoft-cloud/dev/dev-proxy/technical-reference/openaiusagedebuggingplugin', + }, OpenApiSpecGeneratorPlugin: { name: 'Open API Spec Generator Plugin', url: 'https://learn.microsoft.com/microsoft-cloud/dev/dev-proxy/technical-reference/openapispecgeneratorplugin', diff --git a/src/snippets/json-snippets.json b/src/snippets/json-snippets.json index c986677..19bc498 100644 --- a/src/snippets/json-snippets.json +++ b/src/snippets/json-snippets.json @@ -975,6 +975,17 @@ ], "description": "OpenAITelemetryPlugin config section" }, + "OpenAIUsageDebuggingPlugin": { + "prefix": "devproxy-plugin-openai-usage-debugging", + "body": [ + "{", + "\t\"name\": \"OpenAIUsageDebuggingPlugin\",", + "\t\"enabled\": true,", + "\t\"pluginPath\": \"~appFolder/plugins/DevProxy.Plugins.dll\"", + "}" + ], + "description": "OpenAIUsageDebuggingPlugin instance" + }, "OpenApiSpecGeneratorPlugin": { "prefix": "devproxy-plugin-open-api-spec-generator", "body": [