docs: update importing_as_library.md (#1863)

LlamaStackAsLibraryClient.initialize is not async, cannot be await'd
This commit is contained in:
Matthew Farrellee 2025-04-07 06:31:04 -04:00 committed by GitHub
parent c1973f6528
commit c52ccc4bbd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -17,7 +17,7 @@ client = LlamaStackAsLibraryClient(
# provider_data is optional, but if you need to pass in any provider specific data, you can do so here. # provider_data is optional, but if you need to pass in any provider specific data, you can do so here.
provider_data={"tavily_search_api_key": os.environ["TAVILY_SEARCH_API_KEY"]}, provider_data={"tavily_search_api_key": os.environ["TAVILY_SEARCH_API_KEY"]},
) )
await client.initialize() client.initialize()
``` ```
This will parse your config and set up any inline implementations and remote clients needed for your implementation. This will parse your config and set up any inline implementations and remote clients needed for your implementation.