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

Make agents follow configured temperature #4099

Merged
merged 2 commits into from
Sep 28, 2024
Merged
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
1 change: 0 additions & 1 deletion agenthub/browsing_agent/browsing_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,6 @@ def step(self, state: State) -> Action:

response = self.llm.completion(
messages=self.llm.format_messages_for_llm(messages),
temperature=0.0,
stop=[')```', ')\n```'],
)
return self.response_parser.parse(response)
1 change: 0 additions & 1 deletion agenthub/codeact_swe_agent/codeact_swe_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,6 @@ def step(self, state: State) -> Action:
'</execute_ipython>',
'</execute_bash>',
],
temperature=0.0,
)

return self.response_parser.parse(response)
Expand Down
1 change: 0 additions & 1 deletion agenthub/micro/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ def step(self, state: State) -> Action:
message = Message(role='user', content=content)
resp = self.llm.completion(
messages=self.llm.format_messages_for_llm(message),
temperature=0.0,
)
action_resp = resp['choices'][0]['message']['content']
action = parse_response(action_resp)
Expand Down
6 changes: 3 additions & 3 deletions config.template.toml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ api_key = "your-api-key"
#embedding_deployment_name = ""

# Embedding model to use
embedding_model = ""
embedding_model = "local"

# Maximum number of characters in an observation's content
#max_message_chars = 10000
Expand Down Expand Up @@ -188,7 +188,7 @@ model = "gpt-4o-mini"
#memory_max_threads = 2

# LLM config group to use
#llm_config = 'llm'
#llm_config = 'your-llm-config-group'

[agent.RepoExplorerAgent]
# Example: use a cheaper model for RepoExplorerAgent to reduce cost, especially
Expand Down Expand Up @@ -232,7 +232,7 @@ llm_config = 'gpt3'
[security]

# Enable confirmation mode
#confirmation_mode = true
#confirmation_mode = false

# The security analyzer to use
#security_analyzer = ""
Expand Down
Loading