Skip to content

Commit 66e4625

Browse files
committed
as
1 parent 0465bf5 commit 66e4625

File tree

2 files changed

+4
-96
lines changed

2 files changed

+4
-96
lines changed

optillm/plugins/proxy/client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ def client(self):
4848
max_retries=0 # Disable client retries - we handle them
4949
)
5050
elif 'generativelanguage.googleapis.com' in self.base_url:
51-
# Google AI client - create custom client to avoid "models/" prefix
52-
from optillm.plugins.proxy.google_client import GoogleAIClient
53-
self._client = GoogleAIClient(
51+
# Google AI with standard OpenAI-compatible client
52+
self._client = OpenAI(
5453
api_key=self.api_key,
55-
base_url=self.base_url
54+
base_url=self.base_url,
55+
max_retries=0 # Disable client retries - we handle them
5656
)
5757
else:
5858
# Standard OpenAI-compatible client

optillm/plugins/proxy/google_client.py

Lines changed: 0 additions & 92 deletions
This file was deleted.

0 commit comments

Comments
 (0)