mirror of
https://github.com/camel-ai/owl.git
synced 2026-03-22 05:57:17 +08:00
fix prompt bug
This commit is contained in:
@@ -131,8 +131,7 @@ def construct_society(question: str) -> RolePlaying:
|
|||||||
def main():
|
def main():
|
||||||
r"""Main function to run the OWL system with an example question."""
|
r"""Main function to run the OWL system with an example question."""
|
||||||
# Default research question
|
# Default research question
|
||||||
default_task = "Open Brave search, summarize the github stars, fork counts, etc. of camel-ai's camel framework, and write the numbers into a python file using the plot package, save it locally, and run the generated python file.
|
default_task = "Open Brave search, summarize the github stars, fork counts, etc. of camel-ai's camel framework, and write the numbers into a python file using the plot package, save it locally, and run the generated python file. Note: You have been provided with the necessary tools to complete this task."
|
||||||
Note: You have been provided with the necessary tools to complete this task."
|
|
||||||
|
|
||||||
# Override default task if command line argument is provided
|
# Override default task if command line argument is provided
|
||||||
task = sys.argv[1] if len(sys.argv) > 1 else default_task
|
task = sys.argv[1] if len(sys.argv) > 1 else default_task
|
||||||
|
|||||||
@@ -105,8 +105,7 @@ def construct_society(question: str) -> OwlRolePlaying:
|
|||||||
def main():
|
def main():
|
||||||
r"""Main function to run the OWL system with Azure OpenAI."""
|
r"""Main function to run the OWL system with Azure OpenAI."""
|
||||||
# Example question
|
# Example question
|
||||||
default_task = "Open Brave search, summarize the github stars, fork counts, etc. of camel-ai's camel framework, and write the numbers into a python file using the plot package, save it locally, and run the generated python file.
|
default_task = "Open Brave search, summarize the github stars, fork counts, etc. of camel-ai's camel framework, and write the numbers into a python file using the plot package, save it locally, and run the generated python file. Note: You have been provided with the necessary tools to complete this task."
|
||||||
Note: You have been provided with the necessary tools to complete this task."
|
|
||||||
|
|
||||||
# Override default task if command line argument is provided
|
# Override default task if command line argument is provided
|
||||||
task = sys.argv[1] if len(sys.argv) > 1 else default_task
|
task = sys.argv[1] if len(sys.argv) > 1 else default_task
|
||||||
|
|||||||
@@ -127,8 +127,7 @@ def construct_society(question: str) -> RolePlaying:
|
|||||||
def main():
|
def main():
|
||||||
r"""Main function to run the OWL system with an example question."""
|
r"""Main function to run the OWL system with an example question."""
|
||||||
# Default research question
|
# Default research question
|
||||||
default_task = "Open Brave search, summarize the github stars, fork counts, etc. of camel-ai's camel framework, and write the numbers into a python file using the plot package, save it locally, and run the generated python file.
|
default_task = "Open Brave search, summarize the github stars, fork counts, etc. of camel-ai's camel framework, and write the numbers into a python file using the plot package, save it locally, and run the generated python file. Note: You have been provided with the necessary tools to complete this task."
|
||||||
Note: You have been provided with the necessary tools to complete this task."
|
|
||||||
|
|
||||||
# Override default task if command line argument is provided
|
# Override default task if command line argument is provided
|
||||||
task = sys.argv[1] if len(sys.argv) > 1 else default_task
|
task = sys.argv[1] if len(sys.argv) > 1 else default_task
|
||||||
|
|||||||
@@ -142,8 +142,7 @@ def construct_society(question: str) -> OwlRolePlaying:
|
|||||||
def main():
|
def main():
|
||||||
r"""Main function to run the OWL system with an example question."""
|
r"""Main function to run the OWL system with an example question."""
|
||||||
# Example research question
|
# Example research question
|
||||||
default_task = "Open Brave search, summarize the github stars, fork counts, etc. of camel-ai's camel framework, and write the numbers into a python file using the plot package, save it locally, and run the generated python file.
|
default_task = "Open Brave search, summarize the github stars, fork counts, etc. of camel-ai's camel framework, and write the numbers into a python file using the plot package, save it locally, and run the generated python file. Note: You have been provided with the necessary tools to complete this task."
|
||||||
Note: You have been provided with the necessary tools to complete this task."
|
|
||||||
|
|
||||||
# Construct and run the society
|
# Construct and run the society
|
||||||
# Note: This configuration uses GROQ_LLAMA_3_3_70B for tool-intensive roles (assistant, web, planning, video, image)
|
# Note: This configuration uses GROQ_LLAMA_3_3_70B for tool-intensive roles (assistant, web, planning, video, image)
|
||||||
|
|||||||
@@ -110,8 +110,7 @@ def construct_society(question: str) -> RolePlaying:
|
|||||||
def main():
|
def main():
|
||||||
r"""Main function to run the OWL system with an example question."""
|
r"""Main function to run the OWL system with an example question."""
|
||||||
# Default research question
|
# Default research question
|
||||||
default_task = "Open Brave search, summarize the github stars, fork counts, etc. of camel-ai's camel framework, and write the numbers into a python file using the plot package, save it locally, and run the generated python file.
|
default_task = "Open Brave search, summarize the github stars, fork counts, etc. of camel-ai's camel framework, and write the numbers into a python file using the plot package, save it locally, and run the generated python file. Note: You have been provided with the necessary tools to complete this task."
|
||||||
Note: You have been provided with the necessary tools to complete this task."
|
|
||||||
|
|
||||||
# Override default task if command line argument is provided
|
# Override default task if command line argument is provided
|
||||||
task = sys.argv[1] if len(sys.argv) > 1 else default_task
|
task = sys.argv[1] if len(sys.argv) > 1 else default_task
|
||||||
|
|||||||
@@ -131,8 +131,7 @@ def construct_society(question: str) -> RolePlaying:
|
|||||||
def main():
|
def main():
|
||||||
r"""Main function to run the OWL system with an example question."""
|
r"""Main function to run the OWL system with an example question."""
|
||||||
# Default research question
|
# Default research question
|
||||||
default_task = "Open Brave search, summarize the github stars, fork counts, etc. of camel-ai's camel framework, and write the numbers into a python file using the plot package, save it locally, and run the generated python file.
|
default_task = "Open Brave search, summarize the github stars, fork counts, etc. of camel-ai's camel framework, and write the numbers into a python file using the plot package, save it locally, and run the generated python file. Note: You have been provided with the necessary tools to complete this task."
|
||||||
Note: You have been provided with the necessary tools to complete this task."
|
|
||||||
|
|
||||||
# Override default task if command line argument is provided
|
# Override default task if command line argument is provided
|
||||||
task = sys.argv[1] if len(sys.argv) > 1 else default_task
|
task = sys.argv[1] if len(sys.argv) > 1 else default_task
|
||||||
|
|||||||
@@ -118,8 +118,7 @@ def construct_society(question: str) -> RolePlaying:
|
|||||||
def main():
|
def main():
|
||||||
r"""Main function to run the OWL system with an example question."""
|
r"""Main function to run the OWL system with an example question."""
|
||||||
# Default research question
|
# Default research question
|
||||||
default_task = "Open Brave search, summarize the github stars, fork counts, etc. of camel-ai's camel framework, and write the numbers into a python file using the plot package, save it locally, and run the generated python file.
|
default_task = "Open Brave search, summarize the github stars, fork counts, etc. of camel-ai's camel framework, and write the numbers into a python file using the plot package, save it locally, and run the generated python file. Note: You have been provided with the necessary tools to complete this task."
|
||||||
Note: You have been provided with the necessary tools to complete this task."
|
|
||||||
|
|
||||||
# Override default task if command line argument is provided
|
# Override default task if command line argument is provided
|
||||||
task = sys.argv[1] if len(sys.argv) > 1 else default_task
|
task = sys.argv[1] if len(sys.argv) > 1 else default_task
|
||||||
|
|||||||
@@ -126,8 +126,7 @@ def construct_society(question: str) -> RolePlaying:
|
|||||||
def main():
|
def main():
|
||||||
r"""Main function to run the OWL system with an example question."""
|
r"""Main function to run the OWL system with an example question."""
|
||||||
# Default research question
|
# Default research question
|
||||||
default_task = "Open Brave search, summarize the github stars, fork counts, etc. of camel-ai's camel framework, and write the numbers into a python file using the plot package, save it locally, and run the generated python file.
|
default_task = "Open Brave search, summarize the github stars, fork counts, etc. of camel-ai's camel framework, and write the numbers into a python file using the plot package, save it locally, and run the generated python file. Note: You have been provided with the necessary tools to complete this task."
|
||||||
Note: You have been provided with the necessary tools to complete this task."
|
|
||||||
|
|
||||||
# Override default task if command line argument is provided
|
# Override default task if command line argument is provided
|
||||||
task = sys.argv[1] if len(sys.argv) > 1 else default_task
|
task = sys.argv[1] if len(sys.argv) > 1 else default_task
|
||||||
|
|||||||
@@ -129,8 +129,7 @@ def construct_society(question: str) -> RolePlaying:
|
|||||||
def main():
|
def main():
|
||||||
r"""Main function to run the OWL system with an example question."""
|
r"""Main function to run the OWL system with an example question."""
|
||||||
# Example research question
|
# Example research question
|
||||||
default_task = "Open Brave search, summarize the github stars, fork counts, etc. of camel-ai's camel framework, and write the numbers into a python file using the plot package, save it locally, and run the generated python file.
|
default_task = "Open Brave search, summarize the github stars, fork counts, etc. of camel-ai's camel framework, and write the numbers into a python file using the plot package, save it locally, and run the generated python file. Note: You have been provided with the necessary tools to complete this task."
|
||||||
Note: You have been provided with the necessary tools to complete this task."
|
|
||||||
|
|
||||||
# Override default task if command line argument is provided
|
# Override default task if command line argument is provided
|
||||||
task = sys.argv[1] if len(sys.argv) > 1 else default_task
|
task = sys.argv[1] if len(sys.argv) > 1 else default_task
|
||||||
|
|||||||
@@ -118,8 +118,7 @@ def construct_society(question: str) -> RolePlaying:
|
|||||||
def main():
|
def main():
|
||||||
r"""Main function to run the OWL system with an example question."""
|
r"""Main function to run the OWL system with an example question."""
|
||||||
# Default research question
|
# Default research question
|
||||||
default_task = "Open Brave search, summarize the github stars, fork counts, etc. of camel-ai's camel framework, and write the numbers into a python file using the plot package, save it locally, and run the generated python file.
|
default_task = "Open Brave search, summarize the github stars, fork counts, etc. of camel-ai's camel framework, and write the numbers into a python file using the plot package, save it locally, and run the generated python file. Note: You have been provided with the necessary tools to complete this task."
|
||||||
Note: You have been provided with the necessary tools to complete this task."
|
|
||||||
|
|
||||||
# Override default task if command line argument is provided
|
# Override default task if command line argument is provided
|
||||||
task = sys.argv[1] if len(sys.argv) > 1 else default_task
|
task = sys.argv[1] if len(sys.argv) > 1 else default_task
|
||||||
|
|||||||
@@ -1092,8 +1092,7 @@ def create_ui():
|
|||||||
label="Question",
|
label="Question",
|
||||||
elem_id="question_input",
|
elem_id="question_input",
|
||||||
show_copy_button=True,
|
show_copy_button=True,
|
||||||
value="Open Brave search, summarize the github stars, fork counts, etc. of camel-ai's camel framework, and write the numbers into a python file using the plot package, save it locally, and run the generated python file.
|
value="Open Brave search, summarize the github stars, fork counts, etc. of camel-ai's camel framework, and write the numbers into a python file using the plot package, save it locally, and run the generated python file. Note: You have been provided with the necessary tools to complete this task.",
|
||||||
Note: You have been provided with the necessary tools to complete this task.",
|
|
||||||
)
|
)
|
||||||
|
|
||||||
# Enhanced module selection dropdown
|
# Enhanced module selection dropdown
|
||||||
@@ -1128,8 +1127,7 @@ Note: You have been provided with the necessary tools to complete this task.",
|
|||||||
|
|
||||||
# Example questions
|
# Example questions
|
||||||
examples = [
|
examples = [
|
||||||
"Open Brave search, summarize the github stars, fork counts, etc. of camel-ai's camel framework, and write the numbers into a python file using the plot package, save it locally, and run the generated python file.
|
"Open Brave search, summarize the github stars, fork counts, etc. of camel-ai's camel framework, and write the numbers into a python file using the plot package, save it locally, and run the generated python file. Note: You have been provided with the necessary tools to complete this task.",
|
||||||
Note: You have been provided with the necessary tools to complete this task.",
|
|
||||||
"Browse Amazon and find a product that is attractive to programmers. Please provide the product name and price",
|
"Browse Amazon and find a product that is attractive to programmers. Please provide the product name and price",
|
||||||
"Write a hello world python file and save it locally",
|
"Write a hello world python file and save it locally",
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user