Skip to content

Commit 0569804

Browse files
committed
h
1 parent 37738c2 commit 0569804

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

optillm/server.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,7 @@ def execute_single_approach(approach, system_prompt, initial_query, client, mode
409409
if initial_query:
410410
messages.append({"role": "user", "content": initial_query})
411411

412+
logger.debug(f"none_approach kwargs: {kwargs}")
412413
response = none_approach(original_messages=messages, client=client, model=model, request_id=request_id, **kwargs)
413414
# For none approach, we return the response and a token count of 0
414415
# since the full token count is already in the response

tests/test_api_compatibility.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@ def test_extra_body_approach(client):
8080
messages=[
8181
{"role": "user", "content": "What is 2+2?"}
8282
],
83-
extra_body={"optillm_approach": "bon"},
84-
max_tokens=10
83+
extra_body={"optillm_approach": "re2"}, # Use re2 instead of bon (simpler, avoids role ordering issues with some models)
84+
max_tokens=50
8585
)
86-
86+
8787
assert hasattr(response, 'choices')
8888
assert len(response.choices) > 0
8989

0 commit comments

Comments
 (0)