You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the provided code snippet includes characters that 'charmap' codec cannot decode, an error is raised.
Steps to reproduce
Example code snippet:
import autogen
from autogen.coding import LocalCommandLineCodeExecutor
config_list = autogen.config_list_from_json(
"OAI_CONFIG_LIST"
)
llm_config={
"cache_seed": 41, # seed for caching and reproducibility
"config_list": config_list, # a list of OpenAI API configurations
"temperature": 0, # temperature for sampling
}
assistant = autogen.AssistantAgent(
name="assistant",
llm_config=llm_config, # configuration for autogen's enhanced inference API which is compatible with OpenAI API
)
# create a UserProxyAgent instance named "user_proxy"
user_proxy = autogen.UserProxyAgent(
name="user_proxy",
human_input_mode="NEVER",
max_consecutive_auto_reply=10,
code_execution_config={
"executor": LocalCommandLineCodeExecutor(work_dir="coding"),
},
)
chat_res = user_proxy.initiate_chat(
assistant,
message="""Run the following code snippet: `print('Καλημέρα')`""",
)
Model Used
gpt-4o
Expected Behavior
No response
Screenshots and logs
Additional Information
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
When the provided code snippet includes characters that 'charmap' codec cannot decode, an error is raised.
Steps to reproduce
Example code snippet:
Model Used
gpt-4o
Expected Behavior
No response
Screenshots and logs
Additional Information
No response
The text was updated successfully, but these errors were encountered: