From 6b7d6fa348b87fe874865efb2cbec42c0b1828f5 Mon Sep 17 00:00:00 2001 From: "balyan.sid@gmail.com" Date: Tue, 6 Jan 2026 23:48:28 +0530 Subject: [PATCH] fix: use self.client.base_url in acompletion method The acompletion method was incorrectly accessing self.base_url which doesn't exist. Changed to self.client.base_url to match the sync completion method. --- rlm/clients/openai.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rlm/clients/openai.py b/rlm/clients/openai.py index 48e8ed37c..b84ffe1e5 100644 --- a/rlm/clients/openai.py +++ b/rlm/clients/openai.py @@ -84,7 +84,7 @@ async def acompletion( raise ValueError("Model name is required for OpenAI client.") extra_body = {} - if self.base_url == DEFAULT_PRIME_INTELLECT_BASE_URL: + if self.client.base_url == DEFAULT_PRIME_INTELLECT_BASE_URL: extra_body["usage"] = {"include": True} response = await self.async_client.chat.completions.create(