parent
2aa88b893d
commit
dd615c6a5a
@ -1,11 +1,12 @@
|
|||||||
|
# LLMs
|
||||||
from swarms.models.anthropic import Anthropic
|
from swarms.models.anthropic import Anthropic
|
||||||
from swarms.models.petals import Petals
|
from swarms.models.petals import Petals
|
||||||
from swarms.models.mistral import Mistral
|
from swarms.models.mistral import Mistral
|
||||||
from swarms.models.openai_models import OpenAI, AzureOpenAI, OpenAIChat
|
from swarms.models.openai_models import OpenAI, AzureOpenAI, OpenAIChat
|
||||||
|
from swarms.models.zephyr import Zephyr
|
||||||
|
|
||||||
|
|
||||||
# MultiModal Models
|
# MultiModal Models
|
||||||
from swarms.models.idefics import Idefics
|
from swarms.models.idefics import Idefics
|
||||||
from swarms.models.kosmos_two import Kosmos
|
from swarms.models.kosmos_two import Kosmos
|
||||||
from swarms.models.vilt import Vilt
|
from swarms.models.vilt import Vilt
|
||||||
from swarms.models.zephyr import Zephyr
|
|
@ -0,0 +1,9 @@
|
|||||||
|
from swarms.tools.tool import BaseTool
|
||||||
|
|
||||||
|
class EdgeGPTTool(BaseTool):
|
||||||
|
def __init__(self, model, name="EdgeGPTTool", description="Tool that uses EdgeGPTModel to generate responses"):
|
||||||
|
super().__init__(name=name, description=description)
|
||||||
|
self.model = model
|
||||||
|
|
||||||
|
def _run(self, prompt):
|
||||||
|
return self.model.__call__(prompt)
|
Loading…
Reference in new issue