Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
async def main() -> None:

# Load model configuration and create the model client.
with open("config.yaml", "r") as f:
with open("config.yaml", "r", encoding="utf-8") as f:
config = yaml.safe_load(f)

orchestrator_client = ChatCompletionClient.load_component(config["orchestrator_client"])
Expand All @@ -30,7 +30,7 @@ async def main() -> None:

# Read the prompt
prompt = ""
with open("prompt.txt", "rt") as fh:
with open("prompt.txt", "rt", encoding="utf-8") as fh:
prompt = fh.read().strip()
filename = "__FILE_NAME__".strip()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
async def main() -> None:

# Load model configuration and create the model client.
with open("config.yaml", "r") as f:
with open("config.yaml", "r", encoding="utf-8") as f:
config = yaml.safe_load(f)

orchestrator_client = ChatCompletionClient.load_component(config["orchestrator_client"])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
async def main() -> None:

# Load model configuration and create the model client.
with open("config.yaml", "r") as f:
with open("config.yaml", "r", encoding="utf-8") as f:
config = yaml.safe_load(f)
model_client = ChatCompletionClient.load_component(config["model_config"])

Expand Down Expand Up @@ -48,7 +48,7 @@ async def main() -> None:
agent_team = RoundRobinGroupChat([coder_agent, executor], max_turns=12, termination_condition=termination)

prompt = ""
with open("prompt.txt", "rt") as fh:
with open("prompt.txt", "rt", encoding="utf-8") as fh:
prompt = fh.read()

task = f"""Complete the following python function. Format your output as Markdown python code block containing the entire function definition:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ def load_yaml_file(file_path: str) -> Any:
"""
Opens a file and returns its contents.
"""
with open(file_path, "r") as file:
with open(file_path, "r", encoding="utf-8") as file:
return yaml.safe_load(file)