mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-18 14:34:23 +01:00
revert: Revert relative imports in scripts and fix imports in tests
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import requests
|
||||
from bs4 import BeautifulSoup
|
||||
from .config import Config
|
||||
from .llm_utils import create_chat_completion
|
||||
from config import Config
|
||||
from llm_utils import create_chat_completion
|
||||
|
||||
cfg = Config()
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
from .config import Config
|
||||
from config import Config
|
||||
|
||||
cfg = Config()
|
||||
|
||||
from .llm_utils import create_chat_completion
|
||||
from llm_utils import create_chat_completion
|
||||
# This is a magic function that can do anything with no-code. See
|
||||
# https://github.com/Torantulino/AI-Functions for more info.
|
||||
def call_ai_function(function, args, description, model=None):
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import json
|
||||
from typing import Any, Dict, Union
|
||||
from .call_ai_function import call_ai_function
|
||||
from .config import Config
|
||||
from .json_utils import correct_json
|
||||
from call_ai_function import call_ai_function
|
||||
from config import Config
|
||||
from json_utils import correct_json
|
||||
|
||||
cfg = Config()
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import re
|
||||
import json
|
||||
from .config import Config
|
||||
from config import Config
|
||||
|
||||
cfg = Config()
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import openai
|
||||
from .config import Config
|
||||
from config import Config
|
||||
cfg = Config()
|
||||
|
||||
openai.api_key = cfg.openai_api_key
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import sys
|
||||
import os
|
||||
|
||||
sys.path.insert(0, os.path.abspath(
|
||||
os.path.join(os.path.dirname(__file__), '..')))
|
||||
os.path.join(os.path.dirname(__file__), '../scripts')))
|
||||
@@ -1,4 +1,5 @@
|
||||
import unittest
|
||||
import tests.context
|
||||
|
||||
from scripts.json_parser import fix_and_parse_json
|
||||
|
||||
|
||||
Reference in New Issue
Block a user