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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file elizaos_plugin_copilot_proxy-2.0.0a5.tar.gz.
File metadata
- Download URL: elizaos_plugin_copilot_proxy-2.0.0a5.tar.gz
- Upload date:
- Size: 14.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
66c9cba3c6b5d5ae19d73de30e9e4dd81f2b82e1f5ce14b5a06558333dd22b7b
|
|
| MD5 |
926a71dd56c6b3a909f76c8acb1b736d
|
|
| BLAKE2b-256 |
f1df6569fea9a8e354e7342aeaba63c951021252ffbf798ac467ccb5a7dde827
|
File details
Details for the file elizaos_plugin_copilot_proxy-2.0.0a5-py3-none-any.whl.
File metadata
- Download URL: elizaos_plugin_copilot_proxy-2.0.0a5-py3-none-any.whl
- Upload date:
- Size: 12.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
04acb7e18af0696b5e67b1ee548d0113f7f1cde6a4c9ca33789861151168c340
|
|
| MD5 |
023ac6eb31c0e142d0901e1fad4d4cf4
|
|
| BLAKE2b-256 |
213ab961edc66c8e1bbac3e83aad097e910ed4e81f2011c8beec307389bd574a
|