mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-09-24 23:10:40 +08:00
fixbug: cannot find metagpt module
This commit is contained in:
@@ -13,7 +13,9 @@
|
||||
|
||||
import asyncio
|
||||
from pathlib import Path
|
||||
import sys
|
||||
|
||||
sys.path.append(str(Path(__file__).resolve().parent.parent))
|
||||
import aiofiles
|
||||
import fire
|
||||
import yaml
|
||||
|
||||
@@ -4,9 +4,12 @@
|
||||
@Time : 2023/5/6 14:13
|
||||
@Author : alexanderwu
|
||||
@File : llm_hello_world.py
|
||||
@Modified By: mashenquan, 2023-8-9, fix-bug: cannot find metagpt module.
|
||||
"""
|
||||
import asyncio
|
||||
|
||||
from pathlib import Path
|
||||
import sys
|
||||
sys.path.append(str(Path(__file__).resolve().parent.parent))
|
||||
from metagpt.llm import LLM, Claude
|
||||
from metagpt.logs import logger
|
||||
|
||||
|
||||
@@ -4,10 +4,13 @@
|
||||
@Time : 2023/5/7 18:32
|
||||
@Author : alexanderwu
|
||||
@File : search_google.py
|
||||
@Modified By: mashenquan, 2023-8-9, fix-bug: cannot find metagpt module.
|
||||
"""
|
||||
|
||||
import asyncio
|
||||
|
||||
from pathlib import Path
|
||||
import sys
|
||||
sys.path.append(str(Path(__file__).resolve().parent.parent))
|
||||
from metagpt.roles import Searcher
|
||||
|
||||
|
||||
|
||||
@@ -2,9 +2,12 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
@File : search_kb.py
|
||||
@Modified By: mashenquan, 2023-8-9, fix-bug: cannot find metagpt module.
|
||||
"""
|
||||
import asyncio
|
||||
|
||||
from pathlib import Path
|
||||
import sys
|
||||
sys.path.append(str(Path(__file__).resolve().parent.parent))
|
||||
from metagpt.const import DATA_PATH
|
||||
from metagpt.document_store import FaissStore
|
||||
from metagpt.logs import logger
|
||||
|
||||
@@ -1,5 +1,12 @@
|
||||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
@Modified By: mashenquan, 2023-8-9, fix-bug: cannot find metagpt module.
|
||||
"""
|
||||
import asyncio
|
||||
|
||||
from pathlib import Path
|
||||
import sys
|
||||
sys.path.append(str(Path(__file__).resolve().parent.parent))
|
||||
from metagpt.roles import Searcher
|
||||
from metagpt.tools import SearchEngineType
|
||||
|
||||
|
||||
@@ -9,6 +9,9 @@
|
||||
|
||||
import asyncio
|
||||
from pathlib import Path
|
||||
import sys
|
||||
|
||||
sys.path.append(str(Path(__file__).resolve().parent.parent))
|
||||
import aiofiles
|
||||
import fire
|
||||
from metagpt.logs import logger
|
||||
|
||||
Reference in New Issue
Block a user