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:
湛露先生 2025-03-22 05:35:56 +08:00 committed by GitHub
parent eaef7bab7c
commit 97ccc582fc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 5 deletions

View File

@ -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,
)

View File

@ -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

View File

@ -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