mirror of
https://github.com/we-promise/sure.git
synced 2026-04-19 12:04:08 +00:00
Make provider errors more specific
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user