Skip to content

Commit 6b7d6fa

Browse files
committed
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.
1 parent db41d15 commit 6b7d6fa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎rlm/clients/openai.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ async def acompletion(
8484
raise ValueError("Model name is required for OpenAI client.")
8585

8686
extra_body = {}
87-
if self.base_url == DEFAULT_PRIME_INTELLECT_BASE_URL:
87+
if self.client.base_url == DEFAULT_PRIME_INTELLECT_BASE_URL:
8888
extra_body["usage"] = {"include": True}
8989

9090
response = await self.async_client.chat.completions.create(

0 commit comments

Comments
 (0)