Y
Hacker News
new
|
ask
|
show
|
jobs
by
ilaksh
723 days ago
Use a consistent argument structure and make a simple class or function for each provider that translates that to the specific API calls. They are very similar APIs. Maybe select the function call based on the model name.