AI and LLMs · Senior · Question 20 of 75
How can you reduce provider lock-in for LLM features?
- 1Hard-code each provider's SDK into all business logic
- 2Use features available only from one provider everywhere
- 3A thin abstraction over model calls plus portable evals
Show the answer
Correct answer: A thin abstraction over model calls plus portable evals
Explanation
SDKs like the AI SDK help. Evals are what let you switch safely, since prompts rarely transfer unchanged.