mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-17 22:14:28 +01:00
Attempt to fix Linter issues
This commit is contained in:
@@ -123,13 +123,14 @@ class Logger(metaclass=Singleton):
|
|||||||
def set_level(self, level):
|
def set_level(self, level):
|
||||||
self.logger.setLevel(level)
|
self.logger.setLevel(level)
|
||||||
self.typing_logger.setLevel(level)
|
self.typing_logger.setLevel(level)
|
||||||
|
|
||||||
def double_check(self, additionalText=None):
|
def double_check(self, additionalText=None):
|
||||||
if not additionalText:
|
if not additionalText:
|
||||||
additionalText = "Please ensure you've setup and configured everything correctly. Read https://github.com/Torantulino/Auto-GPT#readme to double check. You can also create a github issue or join the discord and ask there!"
|
additionalText = "Please ensure you've setup and configured everything correctly. Read https://github.com/Torantulino/Auto-GPT#readme to double check. You can also create a github issue or join the discord and ask there!"
|
||||||
|
|
||||||
self.typewriter_log("DOUBLE CHECK CONFIGURATION", Fore.YELLOW, additionalText)
|
self.typewriter_log("DOUBLE CHECK CONFIGURATION", Fore.YELLOW, additionalText)
|
||||||
|
|
||||||
|
|
||||||
'''
|
'''
|
||||||
Output stream to console using simulated typing
|
Output stream to console using simulated typing
|
||||||
'''
|
'''
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import pinecone
|
|||||||
|
|
||||||
from memory.base import MemoryProviderSingleton, get_ada_embedding
|
from memory.base import MemoryProviderSingleton, get_ada_embedding
|
||||||
from logger import logger
|
from logger import logger
|
||||||
from colorama import Fore, Style
|
from colorama import Fore, Style
|
||||||
|
|
||||||
class PineconeMemory(MemoryProviderSingleton):
|
class PineconeMemory(MemoryProviderSingleton):
|
||||||
def __init__(self, cfg):
|
def __init__(self, cfg):
|
||||||
@@ -17,7 +17,7 @@ class PineconeMemory(MemoryProviderSingleton):
|
|||||||
# this assumes we don't start with memory.
|
# this assumes we don't start with memory.
|
||||||
# for now this works.
|
# for now this works.
|
||||||
# we'll need a more complicated and robust system if we want to start with memory.
|
# we'll need a more complicated and robust system if we want to start with memory.
|
||||||
self.vec_num = 0
|
self.vec_num = 0
|
||||||
|
|
||||||
try:
|
try:
|
||||||
pinecone.whoami()
|
pinecone.whoami()
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import numpy as np
|
|||||||
|
|
||||||
from memory.base import MemoryProviderSingleton, get_ada_embedding
|
from memory.base import MemoryProviderSingleton, get_ada_embedding
|
||||||
from logger import logger
|
from logger import logger
|
||||||
from colorama import Fore, Style
|
from colorama import Fore, Style
|
||||||
|
|
||||||
|
|
||||||
SCHEMA = [
|
SCHEMA = [
|
||||||
|
|||||||
Reference in New Issue
Block a user