Skip to content

Commit 5bf1d50

Browse files
authored
fix: set ark response_id as logger.info (#553)
1 parent e931eeb commit 5bf1d50

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "veadk-python"
3-
version = "0.5.30"
3+
version = "0.5.31"
44
description = "Volcengine agent development kit, integrations with Volcengine cloud services."
55
readme = "README.md"
66
requires-python = ">=3.10"

veadk/models/ark_llm.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,8 @@ def record_logs(raw_response: ArkTypeResponse):
574574
raw_response.incomplete_details, IncompleteDetails
575575
):
576576
error_message += f"The reason for the incomplete return is `{raw_response.incomplete_details.reason}`, content_filter: `{raw_response.incomplete_details.content_filter}`"
577-
logger.debug(
577+
# (important!) record raw_response.id as info level to track the response, which is critical for log correlation between Ark and LiteLLM
578+
logger.info(
578579
f"Ark response: Received Response from model `{raw_response.model}` with id `{raw_response.id}`. "
579580
f"Status: `{raw_response.status}`. "
580581
f"{error_message}"

veadk/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
VERSION = "0.5.30"
15+
VERSION = "0.5.31"

0 commit comments

Comments
 (0)