circlemind-ai / fast-graphrag

RAG that intelligently adapts to your use case, data, and queries
MIT License
1.98k stars 84 forks source link

Update _llm_openai.py #19

Closed ZeyuTeng96 closed 3 days ago

ZeyuTeng96 commented 3 days ago

For initializing the llm_async_client by user passed value(base_url、api_key、model)

we also need to pass the base_url info to AsyncOpenAI. Otherwise, we cannot initialize an llm_async_client with a customized oai-api like service.

This commit just passing the base_utl to AsyncOpenAI

liukidar commented 3 days ago

Thanks for this, I completelty missed that :( I also added it to the embedder