Skip to content

Commit 971a742

Browse files
authored
Python: update GoogleConnector settings arg to search_api_key from api_key (#10560)
### Motivation and Context The `GoogleSearchSettings` used for the `GoogleConnector` class use `search_api_key` instead of `api_key`. <!-- Thank you for your contribution to the semantic-kernel repo! Please help reviewers and future users, providing the following information: 1. Why is this change required? 2. What problem does it solve? 3. What scenario does it contribute to? 4. If it fixes an open issue, please link to the issue here. --> ### Description Fix the input argument, `search_api_key`, for the `GoogleConnector` class. <!-- Describe your changes, the overall approach, the underlying design. These notes will help understanding how your code works. Thanks! --> ### Contribution Checklist <!-- Before submitting this PR, please make sure: --> - [X] The code builds clean without any errors or warnings - [X] The PR follows the [SK Contribution Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md) and the [pre-submission formatting script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts) raises no violations - [X] All unit tests pass, and I have added new tests where possible - [X] I didn't break anyone 😄
1 parent f3c1054 commit 971a742

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/semantic_kernel/connectors/search_engine/google_connector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def __init__(
3838
"""
3939
try:
4040
self._settings = GoogleSearchSettings.create(
41-
api_key=api_key,
41+
search_api_key=api_key,
4242
search_engine_id=search_engine_id,
4343
env_file_path=env_file_path,
4444
env_file_encoding=env_file_encoding,

0 commit comments

Comments
 (0)