Class: Copilot::CopilotRequestHandler
- Inherits:
-
Object
- Object
- Copilot::CopilotRequestHandler
- Defined in:
- lib/copilot/types.rb
Overview
Intercept outbound LLM inference HTTP/WebSocket requests. Assign an instance to
ClientOptions#request_handler and override send_request to mutate, replace,
or forward the request. BYOK providers may also set bearer_token_provider.
Instance Method Summary collapse
Instance Method Details
#send_request(request, _context) ⇒ Object
626 627 628 |
# File 'lib/copilot/types.rb', line 626 def send_request(request, _context) request end |