mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-04-25 16:56:26 +02:00
fix bug
This commit is contained in:
parent
c7314e31b8
commit
db8b2976a1
10 changed files with 17 additions and 11 deletions
|
|
@ -31,7 +31,7 @@ from llama_index.core.schema import (
|
|||
TransformComponent,
|
||||
)
|
||||
|
||||
from metagpt.config2 import config
|
||||
from metagpt.config2 import Config
|
||||
from metagpt.rag.factories import (
|
||||
get_index,
|
||||
get_rag_embedding,
|
||||
|
|
@ -400,6 +400,7 @@ class SimpleEngine(RetrieverQueryEngine):
|
|||
dict[file_type: BaseReader]
|
||||
"""
|
||||
file_extractor: dict[str:BaseReader] = {}
|
||||
config = Config.default()
|
||||
if config.omniparse.base_url:
|
||||
pdf_parser = OmniParse(
|
||||
api_key=config.omniparse.api_key,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue