Harden OpenAI api layer
- Support rate limiting - Add proper error handling (don't rely on exceptions) Closes #147
This commit is contained in:
+3
-1
@@ -72,7 +72,9 @@ config :music_library, BraveSearch,
|
||||
user_agent: user_agent,
|
||||
api_cooldown: 1000
|
||||
|
||||
config :music_library, OpenAI, api_key: "change me"
|
||||
config :music_library, OpenAI,
|
||||
api_key: "change me",
|
||||
api_cooldown: 250
|
||||
|
||||
# Configure esbuild (the version is required)
|
||||
config :esbuild,
|
||||
|
||||
Reference in New Issue
Block a user