Skip to content

Commit

Permalink
Python: update GoogleConnector settings arg to search_api_key from ap…
Browse files Browse the repository at this point in the history
…i_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 😄
  • Loading branch information
moonbox3 authored Feb 18, 2025
1 parent f3c1054 commit 971a742
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def __init__(
"""
try:
self._settings = GoogleSearchSettings.create(
api_key=api_key,
search_api_key=api_key,
search_engine_id=search_engine_id,
env_file_path=env_file_path,
env_file_encoding=env_file_encoding,
Expand Down

0 comments on commit 971a742

Please sign in to comment.