Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

slips of the pen (bloopers) in autogpt/core part of the repo (#5045)

Cyrusc8914ebb66e5
diff --git a/autogpt/core/ability/base.py b/autogpt/core/ability/base.py
index ac26f02671..1faaaf3327 100644
--- a/autogpt/core/ability/base.py
+++ b/autogpt/core/ability/base.py
@@ -1,6 +1,6 @@
import abc
from pprint import pformat
-from typing import ClassVar
+from typing import Any, ClassVar
import inflection
from pydantic import Field
@@ -50,11 +50,11 @@ class Ability(abc.ABC):
return []
@abc.abstractmethod
- async def __call__(self, *args, **kwargs) -> AbilityResult:
+ async def __call__(self, *args: Any, **kwargs: Any) -> AbilityResult:
...
def __str__(self) -> str:
- return pformat(self.dump)
+ return pformat(self.dump())
def dump(self) -> dict:
return {
@@ -88,5 +88,5 @@ class AbilityRegistry(abc.ABC):
...
@abc.abstractmethod
- def perform(self, ability_name: str, **kwargs) -> AbilityResult:
+ async def perform(self, ability_name: str, **kwargs: Any) -> AbilityResult:
...
diff --git a/autogpt/core/resource/model_providers/openai.py b/autogpt/core/resource/model_providers/openai.py
index 3707796a13..df7bdb83ba 100644
--- a/autogpt/core/resource/model_providers/openai.py
+++ b/autogpt/core/resource/model_providers/openai.py
@@ -109,7 +109,7 @@ class OpenAIModelProviderBudget(ModelProviderBudget):
class OpenAISettings(ModelProviderSettings):
configuration: OpenAIConfiguration
- credentials: ModelProviderCredentials()
+ credentials: ModelProviderCredentials
budget: OpenAIModelProviderBudget