Clean up existing unused code according to flake8

This commit is contained in:
hongjiongteng 2023-07-22 11:55:57 +08:00
parent 0722257cd8
commit d74215c502
68 changed files with 57 additions and 161 deletions

View file

@ -9,7 +9,7 @@ import ast
import inspect
import os
import re
from typing import List, Tuple, Union
from typing import List, Tuple
from metagpt.logs import logger

View file

@ -10,8 +10,6 @@ ref3: https://github.com/hwchase17/langchain/blob/master/langchain/chat_models/o
"""
import tiktoken
from metagpt.schema import RawMessage
TOKEN_COSTS = {
"gpt-3.5-turbo": {"prompt": 0.0015, "completion": 0.002},
"gpt-3.5-turbo-0301": {"prompt": 0.0015, "completion": 0.002},