Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐍 Python serper #523

Merged
merged 4 commits into from
May 12, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
⚠ Fix serper key
  • Loading branch information
asim-shrestha committed May 12, 2023
commit 156f619342789a96e1ddecba3d9c0e20d3408be4
5 changes: 2 additions & 3 deletions platform/reworkd_platform/web/api/agent/prompts.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,9 @@
)

execute_task_prompt = PromptTemplate(
template="""You are AgentGPT. You must answer in the "{language}" language. Given
template="""Answer in the "{language}" language. Given
the following overall objective `{goal}` and the following sub-task, `{task}`.
Perform the task. If the task involves writing code, provide code snippets in
markdown.""",
Perform the task and return an adequate response.""",
input_variables=["goal", "language", "task"],
)

Expand Down
2 changes: 1 addition & 1 deletion platform/reworkd_platform/web/api/agent/tools/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def _google_serper_search_results(
search_term: str, search_type: str = "search", **kwargs: Any
) -> dict:
headers = {
"X-API-KEY": settings.serper_api_key or "",
"X-API-KEY": settings.serp_api_key or "",
"Content-Type": "application/json",
}
params = {
Expand Down