Skip to main content

elizaOS Copilot Proxy Plugin - OpenAI-compatible local proxy for VS Code Copilot

Project description

elizaOS Copilot Proxy Plugin (Python)

Python implementation of the Copilot Proxy model provider plugin for elizaOS.

Features

  • OpenAI-compatible API client for Copilot Proxy
  • Support for text generation (small and large models)
  • JSON object generation with automatic parsing
  • Health check functionality
  • Configurable timeouts and model parameters
  • Async/await support

Installation

pip install elizaos-plugin-copilot-proxy

Usage

import asyncio
from elizaos_plugin_copilot_proxy import CopilotProxyPlugin

async def main():
    # Create plugin (uses environment variables or defaults)
    plugin = CopilotProxyPlugin()
    
    async with plugin:
        # Generate text
        response = await plugin.generate_text_large("What is 2+2?")
        print(response)
        
        # Generate JSON object
        obj = await plugin.generate_object_small("Create a JSON object with a greeting")
        print(obj)

asyncio.run(main())

Environment Variables

  • COPILOT_PROXY_BASE_URL - Base URL for the proxy server (default: http://localhost:3000/v1)
  • COPILOT_PROXY_ENABLED - Enable/disable the plugin (default: true)
  • COPILOT_PROXY_SMALL_MODEL - Small model ID (default: gpt-5-mini)
  • COPILOT_PROXY_LARGE_MODEL - Large model ID (default: gpt-5.1)
  • COPILOT_PROXY_TIMEOUT_SECONDS - Request timeout (default: 120)
  • COPILOT_PROXY_MAX_TOKENS - Maximum tokens (default: 8192)
  • COPILOT_PROXY_CONTEXT_WINDOW - Context window size (default: 128000)

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

elizaos_plugin_copilot_proxy-2.0.0a4.tar.gz (11.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file elizaos_plugin_copilot_proxy-2.0.0a4.tar.gz.

File metadata

File hashes

Hashes for elizaos_plugin_copilot_proxy-2.0.0a4.tar.gz
Algorithm Hash digest
SHA256 4a93f290fd0c7f17aa421dd643e3bd8b8ebbc403f18f7e94b89ba216e4c28cfb
MD5 a6b1780e261a1ef576f0c407767825c2
BLAKE2b-256 07c30fdce77861519874a231e8677b74c02fdbc51d21bbe8e99e83312d45b3a0

See more details on using hashes here.

File details

Details for the file elizaos_plugin_copilot_proxy-2.0.0a4-py3-none-any.whl.

File metadata

File hashes

Hashes for elizaos_plugin_copilot_proxy-2.0.0a4-py3-none-any.whl
Algorithm Hash digest
SHA256 87d8906b0e710b34495a1ea6a112d5415e31a0ab82aa3c7ab59024f4bb94139a
MD5 8348bddd6eef76d770658386e7fd7457
BLAKE2b-256 14403a48c5736b331b711ac738c8d9639ad98d6368f86859a1e4508f251eef14

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page