diff options
| author | Adam Malczewski <[email protected]> | 2026-04-28 14:10:04 +0900 |
|---|---|---|
| committer | Adam Malczewski <[email protected]> | 2026-04-28 14:10:04 +0900 |
| commit | 1ec2afaa21b8c3ef336982e80259b9bb79e3fb32 (patch) | |
| tree | 7cf43fbd4efc6d6834744d800822255fd3d44d05 /lib/dispatch/adapter/base.rb | |
| parent | e6c2f23b58a1e87088ee75632c74fee4f15f6a94 (diff) | |
| download | dispatch-adapter-copilot-1ec2afaa21b8c3ef336982e80259b9bb79e3fb32.tar.gz dispatch-adapter-copilot-1ec2afaa21b8c3ef336982e80259b9bb79e3fb32.zip | |
updatesdev
Diffstat (limited to 'lib/dispatch/adapter/base.rb')
| -rw-r--r-- | lib/dispatch/adapter/base.rb | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/lib/dispatch/adapter/base.rb b/lib/dispatch/adapter/base.rb deleted file mode 100644 index 4b7a6ed..0000000 --- a/lib/dispatch/adapter/base.rb +++ /dev/null @@ -1,31 +0,0 @@ -# frozen_string_literal: true - -module Dispatch - module Adapter - class Base - def chat(_messages, system: nil, tools: [], stream: false, max_tokens: nil, thinking: nil, &_block) - raise NotImplementedError, "#{self.class}#chat must be implemented" - end - - def model_name - raise NotImplementedError, "#{self.class}#model_name must be implemented" - end - - def count_tokens(_messages, system: nil, tools: []) # rubocop:disable Lint/UnusedMethodArgument - -1 - end - - def list_models - raise NotImplementedError, "#{self.class}#list_models must be implemented" - end - - def provider_name - self.class.name - end - - def max_context_tokens - nil - end - end - end -end |
