pull/207/head^2
Kye 1 year ago
parent 9a82be6943
commit 5489dc576a

@ -24,4 +24,4 @@ agent = Agent(llm=llm, max_loops=1, dashboard=True)
# Run the workflow on a task
out = agent.run("Generate a 10,000 word blog on health and wellness.")
print(out)
print(out)

@ -28,6 +28,7 @@ You are an multi-modal autonomous agent. You are given a task and an image. You
"""
class GPT4VisionAPI:
"""
GPT-4 Vision API
@ -455,9 +456,9 @@ class GPT4VisionAPI:
# _type_: _description_
# """
# META_PROMPT = """
# For any labels or markings on an image that you reference in your response, please
# enclose them in square brackets ([]) and list them explicitly. Do not use ranges; for
# example, instead of '1 - 4', list as '[1], [2], [3], [4]'. These labels could be
# For any labels or markings on an image that you reference in your response, please
# enclose them in square brackets ([]) and list them explicitly. Do not use ranges; for
# example, instead of '1 - 4', list as '[1], [2], [3], [4]'. These labels could be
# numbers or letters and typically correspond to specific segments or parts of the image.
# """
# return META_PROMPT

@ -751,9 +751,9 @@ class OpenAIChat(BaseLLM):
Any parameters that are valid to be passed to the openai.create call can be passed
in, even if not explicitly saved on this class.
Args:
model_name: The model name to use.
model_kwargs: Any additional kwargs to pass to the model.
openai_api_key: The OpenAI API key to use.
@ -764,8 +764,8 @@ class OpenAIChat(BaseLLM):
streaming: Whether to stream the results or not.
allowed_special: Set of special tokens that are allowed
disallowed_special: Set of special tokens that are not allowed
Example:
.. code-block:: python

@ -9,20 +9,19 @@ from typing import Any, Callable, Dict, List, Optional, Tuple
from termcolor import colored
from swarms.tools.tool import BaseTool
from swarms.utils.code_interpreter import SubprocessCodeInterpreter
from swarms.utils.parse_code import extract_code_in_backticks_in_string
from swarms.prompts.agent_system_prompts import FLOW_SYSTEM_PROMPT
from swarms.prompts.multi_modal_autonomous_instruction_prompt import (
MULTI_MODAL_AUTO_AGENT_SYSTEM_PROMPT_1,
)
from swarms.utils.pdf_to_text import pdf_to_text
from swarms.prompts.tools import (
DYNAMIC_STOP_PROMPT,
DYNAMICAL_TOOL_USAGE,
SCENARIOS,
)
from swarms.prompts.agent_system_prompts import FLOW_SYSTEM_PROMPT
from swarms.tools.tool import BaseTool
from swarms.utils.code_interpreter import SubprocessCodeInterpreter
from swarms.utils.parse_code import extract_code_in_backticks_in_string
from swarms.utils.pdf_to_text import pdf_to_text
def autonomous_agent_prompt(

Loading…
Cancel
Save