mirror of
https://github.com/microsoft/autogen.git
synced 2025-12-27 15:09:41 +00:00
Fix some code for clean autogenstudio (#5981)
<!-- Thank you for your contribution! Please review https://microsoft.github.io/autogen/docs/Contribute before opening a pull request. --> <!-- Please add a reviewer to the assignee section when you create a PR. If you don't have the access to it, we will shortly find a reviewer and assign them to your PR. --> ## Why are these changes needed? <!-- Please give a short summary of the change and the problem this solves. --> ## Related issue number <!-- For example: "Closes #1234" --> ## Checks - [x] I've included any doc changes needed for <https://microsoft.github.io/autogen/>. See <https://github.com/microsoft/autogen/blob/main/CONTRIBUTING.md> to build and test documentation locally. - [x] I've added tests (if relevant) corresponding to the changes introduced in this PR. - [x] I've made sure all auto checks have passed. Signed-off-by: zhanluxianshen <zhanluxianshen@163.com> Co-authored-by: Victor Dibia <victordibia@microsoft.com>
This commit is contained in:
parent
eaef7bab7c
commit
97ccc582fc
@ -1,5 +1,4 @@
|
||||
import os
|
||||
import tempfile
|
||||
import warnings
|
||||
from typing import Optional
|
||||
|
||||
@ -91,6 +90,7 @@ def serve(
|
||||
host: str = "127.0.0.1",
|
||||
port: int = 8084,
|
||||
workers: int = 1,
|
||||
reload: Annotated[bool, typer.Option("--reload")] = False,
|
||||
docs: bool = False,
|
||||
):
|
||||
"""
|
||||
@ -118,7 +118,7 @@ def serve(
|
||||
host=host,
|
||||
port=port,
|
||||
workers=workers,
|
||||
reload=False,
|
||||
reload=reload,
|
||||
)
|
||||
|
||||
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
# api/initialization.py
|
||||
import os
|
||||
from pathlib import Path
|
||||
from typing import Dict
|
||||
|
||||
from dotenv import load_dotenv
|
||||
from loguru import logger
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
import os
|
||||
from typing import cast
|
||||
|
||||
from fastapi import FastAPI, HTTPException
|
||||
from fastapi import FastAPI
|
||||
|
||||
from ..datamodel import Response
|
||||
from ..teammanager import TeamManager
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user