Release Notes - useLLM v0.8.0
Introducing LLMProvider, global configurations and more
We're excited to announce the release of useLLM@0.8.0.
Version 0.8.0 introduces LLMProvider, a context provider for setting global configurations for the useLLM hook. This greatly simplifies your development process by making it easier to manage configurations for useLLM calls throughout your application.
Here's an example showcasing how the LLMProvider can be utilized in a Next.js application:
/* app/layout.tsx */
import { LLMProvider } from "usellm";
export default function RootLayout({ children }) {
return (
<html>
{/* Other html and body elements */}
<body>
<LLMProvider serviceUrl="/api/llm">
{/* Other providers and elements */}
{children}
{/* Other providers and elements */}
</LLMProvider>
{/* Other html and body elements */}
</body>
</html>
);
}
In this example, the LLMProvider is wrapped around the entire application, with a serviceUrl of "/api/llm". This means any useLLM call within the application will use this serviceUrl by default, unless a different serviceUrl is specified in the useLLM call.
Check out the docs to learn more: https://usellm.org/docs

