Make provider errors more specific

This commit is contained in:
Zach Gollwitzer
2025-03-28 17:53:04 -04:00
parent 29f445d75e
commit dc17a0a298
3 changed files with 8 additions and 3 deletions

View File

@@ -1,6 +1,9 @@
class Provider::Openai < Provider
include LlmProvider
# Subclass so errors caught in this provider are raised as Provider::Openai::Error
Error = Class.new(Provider::Error)
MODELS = %w[gpt-4o]
def initialize(access_token)