Format import according to isort

This commit is contained in:
hongjiongteng 2023-07-22 11:28:22 +08:00
parent b72b6adbac
commit 0722257cd8
88 changed files with 232 additions and 159 deletions

View file

@ -6,6 +6,10 @@
@File : __init__.py
"""
from metagpt.utils.singleton import Singleton
from metagpt.utils.read_document import read_docx
from metagpt.utils.token_counter import TOKEN_COSTS, count_string_tokens, count_message_tokens
from metagpt.utils.singleton import Singleton
from metagpt.utils.token_counter import (
TOKEN_COSTS,
count_message_tokens,
count_string_tokens,
)

View file

@ -5,12 +5,12 @@
@Author : alexanderwu
@File : common.py
"""
import os
import ast
import inspect
import os
import re
from typing import List, Tuple, Union
from typing import Union, List, Tuple
from metagpt.logs import logger

View file

@ -5,8 +5,8 @@
@Author : alexanderwu
@File : mermaid.py
"""
import subprocess
import os
import subprocess
from pathlib import Path
from metagpt.const import PROJECT_ROOT

View file

@ -9,8 +9,8 @@ ref2: https://github.com/Significant-Gravitas/Auto-GPT/blob/master/autogpt/llm/t
ref3: https://github.com/hwchase17/langchain/blob/master/langchain/chat_models/openai.py
"""
import tiktoken
from metagpt.schema import RawMessage
from metagpt.schema import RawMessage
TOKEN_COSTS = {
"gpt-3.5-turbo": {"prompt": 0.0015, "completion": 0.002},