From 4e2822f05f3c12b446f09679c951e9765d036b3e Mon Sep 17 00:00:00 2001 From: Muspi Merol Date: Mon, 2 Sep 2024 20:51:13 +0800 Subject: [PATCH] fix: outdated CPython version info in the prompt --- src/python/chat/templates/groundings.j2 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/python/chat/templates/groundings.j2 b/src/python/chat/templates/groundings.j2 index a2ada4ec..32dd7e20 100644 --- a/src/python/chat/templates/groundings.j2 +++ b/src/python/chat/templates/groundings.j2 @@ -20,7 +20,10 @@ Here are some groundings information about the runtime environment: Accessing python objects inside js scope is a `PyProxy`. Its `toJs()` method should be called in JavaScript. See [docs](https://pyodide.org/en/stable/usage/type-conversions.html#type-translations-pyproxy-to-js). - python language version: 3.11 + python language version: {{ + from sys import version_info + ".".join(map(str, version_info[:3])) + }} ---