personal memory agent
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge branch 'hopper-hcflzwwe-simplify-vertex-settings'

# Conflicts:
# apps/settings/routes.py
# tests/baselines/api/settings/providers.json
# tests/test_validate_key.py

+3 -7
+2 -2
apps/settings/routes.py
··· 802 802 validation = validate_vertex_credentials(creds_path_str) 803 803 804 804 if not validation.get("valid"): 805 - # Still save the file, but report the error 806 - # Don't block save - credentials may need reconfiguration 805 + # Still save the file, but report the error. 806 + # Don't block save - credentials may be valid with the right service account. 807 807 pass 808 808 809 809 # Store validation result
+1 -5
tests/test_validate_key.py
··· 161 161 assert mock_cls.call_args.kwargs["vertexai"] is True 162 162 assert mock_cls.call_args.kwargs["credentials"] is mock_creds 163 163 assert "api_key" not in mock_cls.call_args.kwargs 164 - assert "project" not in mock_cls.call_args.kwargs 165 - assert "location" not in mock_cls.call_args.kwargs 166 164 167 165 168 166 def test_probe_backend_aistudio(): ··· 488 486 payload = response.get_json() 489 487 assert payload["key_validation"]["google"]["valid"] is True 490 488 assert payload["key_validation"]["google"]["backend"] == "vertex" 491 - mock_validate.assert_called_once_with( 492 - str(journal / "config" / "vertex-credentials.json") 493 - ) 489 + mock_validate.assert_called_once()