Skip to content

Commit a30805b

Browse files
authored
fix: use self.client.base_url in acompletion method (#32)
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 bd92fc6 commit a30805b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rlm/clients/openai.py

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

8989
extra_body = {}
90-
if self.base_url == DEFAULT_PRIME_INTELLECT_BASE_URL:
90+
if self.client.base_url == DEFAULT_PRIME_INTELLECT_BASE_URL:
9191
extra_body["usage"] = {"include": True}
9292

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

0 commit comments

Comments
 (0)