File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ class OpenAILLMService(BaseLLMService):
3131
3232 def __post_init__ (self ):
3333 logger .debug ("Initialized OpenAILLMService with patched OpenAI client." )
34- self .llm_async_client : instructor .AsyncInstructor = instructor .from_openai (AsyncOpenAI (api_key = self .api_key ))
34+ self .llm_async_client : instructor .AsyncInstructor = instructor .from_openai (AsyncOpenAI (api_key = self .api_key , base_url = self . base_url ))
3535
3636 @retry (
3737 stop = stop_after_attempt (3 ),
@@ -112,7 +112,7 @@ class OpenAIEmbeddingService(BaseEmbeddingService):
112112 model : Optional [str ] = field (default = "text-embedding-3-small" )
113113
114114 def __post_init__ (self ):
115- self .embedding_async_client : AsyncOpenAI = AsyncOpenAI (api_key = self .api_key )
115+ self .embedding_async_client : AsyncOpenAI = AsyncOpenAI (api_key = self .api_key , base_url = self . base_url )
116116 logger .debug ("Initialized OpenAIEmbeddingService with OpenAI client." )
117117
118118 @retry (
You can’t perform that action at this time.
0 commit comments