Skip to content

Commit 15adf59

Browse files
CarltonXiangharvey_xiangCaralHsi
authored
Feat/add model log (#595)
* feat: timer add log args * feat: timer add log args * feat: timer add log args * feat: add openai model log --------- Co-authored-by: harvey_xiang <[email protected]> Co-authored-by: CaralHsi <[email protected]>
1 parent ea1358e commit 15adf59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/memos/llms/openai.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def generate(self, messages: MessageList, **kwargs) -> str:
5555
return reasoning_content + response_content
5656
return response_content
5757

58-
@timed(log=True, log_prefix="OpenAI LLM")
58+
@timed(log=True, log_prefix="OpenAI LLM", log_args=["model_name_or_path"])
5959
def generate_stream(self, messages: MessageList, **kwargs) -> Generator[str, None, None]:
6060
"""Stream response from OpenAI LLM with optional reasoning support."""
6161
if kwargs.get("tools"):

0 commit comments

Comments
 (0)