fix: replace chinese comment with english version
This commit is contained in:
parent
10ecc91e5e
commit
6dcd2ca064
@ -27,7 +27,6 @@ from app.schema import (
|
|||||||
ToolChoice,
|
ToolChoice,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
REASONING_MODELS = ["o1", "o3-mini"]
|
REASONING_MODELS = ["o1", "o3-mini"]
|
||||||
|
|
||||||
|
|
||||||
@ -300,7 +299,7 @@ class LLM:
|
|||||||
if not full_response:
|
if not full_response:
|
||||||
raise ValueError("Empty response from streaming LLM")
|
raise ValueError("Empty response from streaming LLM")
|
||||||
|
|
||||||
# 对于流式响应,估算completion tokens
|
# estimate completion tokens for streaming response
|
||||||
completion_tokens = self.count_tokens(completion_text)
|
completion_tokens = self.count_tokens(completion_text)
|
||||||
logger.info(
|
logger.info(
|
||||||
f"Estimated completion tokens for streaming response: {completion_tokens}"
|
f"Estimated completion tokens for streaming response: {completion_tokens}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user