diff options
| author | Adam Malczewski <[email protected]> | 2026-04-01 13:29:15 +0900 |
|---|---|---|
| committer | Adam Malczewski <[email protected]> | 2026-04-01 13:29:15 +0900 |
| commit | 9aacecab709bd7315a97675750e1874d858bdeef (patch) | |
| tree | ee3fd7fe236b5d1a99791f6c4d4f22b7baa12f1e /lib/dispatch/adapter/response.rb | |
| parent | 3e32dec579fbdedec8c7ddb881207b25bb342e60 (diff) | |
| download | dispatch-adapter-copilot-9aacecab709bd7315a97675750e1874d858bdeef.tar.gz dispatch-adapter-copilot-9aacecab709bd7315a97675750e1874d858bdeef.zip | |
add rate limiting
Diffstat (limited to 'lib/dispatch/adapter/response.rb')
| -rw-r--r-- | lib/dispatch/adapter/response.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/dispatch/adapter/response.rb b/lib/dispatch/adapter/response.rb index d3e4789..b4ba3eb 100644 --- a/lib/dispatch/adapter/response.rb +++ b/lib/dispatch/adapter/response.rb @@ -3,20 +3,20 @@ module Dispatch module Adapter Response = Struct.new(:content, :tool_calls, :model, :stop_reason, :usage, keyword_init: true) do - def initialize(content: nil, tool_calls: [], model:, stop_reason:, usage:) - super(content:, tool_calls:, model:, stop_reason:, usage:) + def initialize(model:, stop_reason:, usage:, content: nil, tool_calls: []) + super end end Usage = Struct.new(:input_tokens, :output_tokens, :cache_read_tokens, :cache_creation_tokens, keyword_init: true) do def initialize(input_tokens:, output_tokens:, cache_read_tokens: 0, cache_creation_tokens: 0) - super(input_tokens:, output_tokens:, cache_read_tokens:, cache_creation_tokens:) + super end end StreamDelta = Struct.new(:type, :text, :tool_call_id, :tool_name, :argument_delta, keyword_init: true) do def initialize(type:, text: nil, tool_call_id: nil, tool_name: nil, argument_delta: nil) - super(type:, text:, tool_call_id:, tool_name:, argument_delta:) + super end end end |
