Skip to content

Add snippets for LanguageModelRateLimitingPlugin to snippets.json #307

@garrytrinder

Description

@garrytrinder

Add new code snippets to src/snippets.json for the LanguageModelRateLimitingPlugin, as documented at https://learn.microsoft.com/microsoft-cloud/dev/dev-proxy/technical-reference/languagemodelratelimitingplugin.

Requirements:

  • Add a snippet for a LanguageModelRateLimitingPlugin instance.
  • Add a snippet for the LanguageModelRateLimitingPlugin configuration section.
  • Follow the existing format used for other plugins in src/snippets.json (see @garrytrinder/dev-proxy-toolkit/files/src/snippets.json for reference).
  • Include an example plugin instance and configuration section in the new snippets.

Snippet Examples:

Plugin instance:

{
  "name": "LanguageModelRateLimitingPlugin",
  "enabled": true,
  "pluginPath": "~appFolder/plugins/DevProxy.Plugins.dll",
  "configSection": "languageModelRateLimitingPlugin"
}

Plugin config section:

"languageModelRateLimitingPlugin": {
  "$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.0.0/languagemodelratelimitingplugin.schema.json",
  "rateLimit": 100,
  "retryAfterSeconds": 60
}

Acceptance Criteria:

  • New snippets appear in src/snippets.json for LanguageModelRateLimitingPlugin, matching the established style and structure.
  • Example values are provided for plugin instance and configuration section, consistent with official documentation.
  • Snippet descriptions are clear and follow the convention used for other plugin entries.

Please see the official documentation and the existing file for reference.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions