Skip to content
Closed
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
2 changes: 2 additions & 0 deletions autogenui/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ def run_flow(self, prompt: str, flow: str = "default") -> None:
"seed": 42, # seed for caching and reproducibility
"config_list": config_list, # a list of OpenAI API configurations
"temperature": 0, # temperature for sampling
"model": "gpt-4o",
}

assistant = autogen.AssistantAgent(
Expand All @@ -43,6 +44,7 @@ def run_flow(self, prompt: str, flow: str = "default") -> None:
user_proxy.initiate_chat(
assistant,
message=prompt,

)

messages = user_proxy.chat_messages[assistant]
Expand Down
2 changes: 1 addition & 1 deletion autogenui/web/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# allow cross origin requests for testing on localhost: 800 * ports only
app.add_middleware(
CORSMiddleware,
allow_origins=["http://localhost:8000", "http://localhost:8001", "http://localhost:3000"],
allow_origins=["*"],
allow_credentials=True,
allow_methods=["*"],
allow_headers=["*"],
Expand Down