Skip to content

Commit

Permalink
Use common logging code in the OpenAI API server (#2758)
Browse files Browse the repository at this point in the history
Co-authored-by: Warren Francis <[email protected]>
  • Loading branch information
geekoftheweek and Warren Francis authored Dec 9, 2023
1 parent 6ffc2ce commit 3abb7cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fastchat/serve/openai_api_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import asyncio
import argparse
import json
import logging
import os
from typing import Generator, Optional, Union, Dict, List, Any

Expand Down Expand Up @@ -61,8 +60,9 @@
APITokenCheckResponse,
APITokenCheckResponseItem,
)
from fastchat.utils import build_logger

logger = logging.getLogger(__name__)
logger = build_logger("openai_api_server", "openai_api_server.log")

conv_template_map = {}

Expand Down

0 comments on commit 3abb7cb

Please sign in to comment.