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

Harrison/claude 2 #148

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 2 additions & 2 deletions agent/llm_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def send_chat_completion_request(
model=model, # Change model here to use different models
messages=messages,
temperature=temperature,
max_tokens=max_tokens,
max_tokens=50000,
provider=CFG.llm_provider, # Change provider here to use a different API
)
return result["choices"][0]["message"]["content"]
Expand All @@ -83,7 +83,7 @@ async def stream_response(model, messages, temperature, max_tokens, websocket):
model=model,
messages=messages,
temperature=temperature,
max_tokens=max_tokens,
max_tokens=50000,
provider=CFG.llm_provider,
stream=True,
):
Expand Down
3 changes: 2 additions & 1 deletion agent/prompts.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ def generate_search_queries_prompt(question):
"""

return f'Write 4 google search queries to search online that form an objective opinion from the following: "{question}"'\
f'You must respond with a list of strings in the following format: ["query 1", "query 2", "query 3", "query 4"]'
f'You must respond with a list of strings in the following format: ["query 1", "query 2", "query 3", "query 4"]' \
"Only respond with this list - do not include any text before or after."


def generate_resource_report_prompt(question, research_summary):
Expand Down
6 changes: 3 additions & 3 deletions config/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ def __init__(self) -> None:
self.allow_downloads = False

self.selenium_web_browser = os.getenv("USE_WEB_BROWSER", "chrome")
self.llm_provider = os.getenv("LLM_PROVIDER", "ChatOpenAI")
self.fast_llm_model = os.getenv("FAST_LLM_MODEL", "gpt-3.5-turbo-16k")
self.smart_llm_model = os.getenv("SMART_LLM_MODEL", "gpt-4")
self.llm_provider = os.getenv("LLM_PROVIDER", "ChatAnthropic")
self.fast_llm_model = os.getenv("FAST_LLM_MODEL", "claude-2")
self.smart_llm_model = os.getenv("SMART_LLM_MODEL", "claude-2")
self.fast_token_limit = int(os.getenv("FAST_TOKEN_LIMIT", 4000))
self.smart_token_limit = int(os.getenv("SMART_TOKEN_LIMIT", 8000))
self.browse_chunk_max_length = int(os.getenv("BROWSE_CHUNK_MAX_LENGTH", 8192))
Expand Down