Skip to content

Commit

Permalink
fix: revert claude agent + gcp env var for now (#1126)
Browse files Browse the repository at this point in the history
  • Loading branch information
jennmueng authored Sep 5, 2024
1 parent 6c7c609 commit d02ffb2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/seer/automation/autofix/components/coding/component.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from langfuse.decorators import observe
from sentry_sdk.ai.monitoring import ai_track

from seer.automation.agent.agent import AgentConfig, ClaudeAgent
from seer.automation.agent.agent import AgentConfig, GptAgent
from seer.automation.autofix.autofix_context import AutofixContext
from seer.automation.autofix.components.coding.models import (
CodingOutput,
Expand Down Expand Up @@ -38,7 +38,7 @@ def _append_file_change(self, repo_external_id: str, file_change: FileChange):
def invoke(self, request: CodingRequest) -> CodingOutput | None:
tools = BaseTools(self.context)

agent = ClaudeAgent(
agent = GptAgent(
tools=tools.get_tools(),
config=AgentConfig(system_prompt=CodingPrompts.format_system_msg()),
)
Expand Down
7 changes: 4 additions & 3 deletions src/seer/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,10 @@ def do_validation(self):
), "JSON_API_SHARED_SECRETS or API_PUBLIC_KEY_SECRET_ID required if IGNORE_API_AUTH is false!"

if self.is_production:
assert (
self.GOOGLE_CLOUD_PROJECT
), "GOOGLE_CLOUD_PROJECT required for production! Why is this not set? Huh?"
# TODO: Set and uncomment this
# assert (
# self.GOOGLE_CLOUD_PROJECT
# ), "GOOGLE_CLOUD_PROJECT required for production! Why is this not set? Huh?"

assert self.has_sentry_integration, "Sentry integration required for production mode."
assert self.SENTRY_DSN, "SENTRY_DSN required for production!"
Expand Down

0 comments on commit d02ffb2

Please sign in to comment.