Skip to content

Commit 29a8f35

Browse files
authored
Merge branch 'main' into liqun/fix_env_client
2 parents 4110350 + 776064b commit 29a8f35

File tree

27 files changed

+565
-260
lines changed

27 files changed

+565
-260
lines changed

README.md

Lines changed: 225 additions & 210 deletions
Large diffs are not rendered by default.

project/examples/code_generator_examples/example1-codeinterpreter.yaml renamed to project/examples/code_generator_examples/example-codeinterpreter-default-1.yaml

File renamed without changes.

project/examples/code_generator_examples/example2-codeinterpreter.yaml renamed to project/examples/code_generator_examples/example-codeinterpreter-default-2.yaml

File renamed without changes.

project/examples/planner_examples/example-planner.yaml renamed to project/examples/planner_examples/example-planner-default-1.yaml

File renamed without changes.

project/examples/planner_examples/example-planner-2.yaml renamed to project/examples/planner_examples/example-planner-default-2.yaml

File renamed without changes.

taskweaver/chat/console/chat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ def _reset_session(self, first_session: bool = False):
498498
self.session.stop()
499499
self.session = self.app.get_session()
500500

501-
self._system_message("--- new session starts ---")
501+
self._system_message("--- new session started ---")
502502
self._assistant_message(
503503
"I am TaskWeaver, an AI assistant. To get started, could you please enter your request?",
504504
)

taskweaver/code_interpreter/code_interpreter/code_generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ def compose_conversation(
251251
# for code correction
252252
user_message += self.user_message_head_template.format(
253253
FEEDBACK=format_code_feedback(post),
254-
MESSAGE=f"{post.get_attachment(AttachmentType.revise_message)[0]}",
254+
MESSAGE=f"{post.get_attachment(AttachmentType.revise_message)[0].content}",
255255
)
256256

257257
assistant_message = self.post_translator.post_to_raw_text(

taskweaver/code_interpreter/code_interpreter_cli_only/code_interpreter_cli_only.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,12 @@ def reply(
6060
prompt_log_path=prompt_log_path,
6161
)
6262

63-
code = post_proxy.post.get_attachment(type=AttachmentType.reply_content)[0]
63+
code = post_proxy.post.get_attachment(type=AttachmentType.reply_content)[0].content
6464
if len(code) == 0:
65-
post_proxy.update_message(post_proxy.post.get_attachment(type=AttachmentType.thought)[0], is_end=True)
65+
post_proxy.update_message(
66+
post_proxy.post.get_attachment(type=AttachmentType.thought)[0].content,
67+
is_end=True,
68+
)
6669
return post_proxy.end()
6770

6871
code_to_exec = "! " + code

taskweaver/code_interpreter/code_interpreter_plugin_only/code_interpreter_plugin_only.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def reply(
7878
return post_proxy.end()
7979

8080
functions = json.loads(
81-
post_proxy.post.get_attachment(type=AttachmentType.function)[0],
81+
post_proxy.post.get_attachment(type=AttachmentType.function)[0].content,
8282
)
8383
if len(functions) > 0:
8484
code: List[str] = []

taskweaver/ext_role/image_reader/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)