mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-07-02 16:01:04 +02:00
Format import according to isort
This commit is contained in:
parent
b72b6adbac
commit
0722257cd8
88 changed files with 232 additions and 159 deletions
|
|
@ -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,
|
||||
)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue