Skip to content

Commit 78e88b9

Browse files
committed
Update mock_server.py
1 parent 90f4a92 commit 78e88b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/mock_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,9 @@ class GenerationRequest(BaseModel):
140140
class DeepSeekProxy:
141141
def __init__(self, api_key: str, extra_headers: Optional[Dict[str, str]] = None):
142142
# We instantiate a new client per request to ensure isolation of user credentials
143-
logger.debug("Initializing DeepSeekProxy client with headers: %s", extra_headers)
144143
if extra_headers is None:
145144
extra_headers = {}
145+
logger.debug("Initializing DeepSeekProxy client with headers: %s", [k for k in extra_headers.keys() if k.lower() != "x-api-key"])
146146
if "x-api-key" in extra_headers and extra_headers["x-api-key"]:
147147
api_key = extra_headers["x-api-key"]
148148

0 commit comments

Comments
 (0)