Skip to content

Commit 8fc1c1d

Browse files
magar51GitHub Enterprise
authored and
GitHub Enterprise
committed
Merge pull request GoogleCloudPlatform#2 from magar51/fix/typo
Fix/typo
2 parents 6c457d7 + dfbad1e commit 8fc1c1d

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

discoveryengine/requirements-test.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
pytest==7.2.1
2-
google-api-core==2.11.1
2+
google-api-core==2.17.1

discoveryengine/requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
google-cloud-discoveryengine==0.11.1
2-
google-api-core==2.11.1
1+
google-cloud-discoveryengine==0.11.8
2+
google-api-core==2.17.1

discoveryengine/search_sample.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,12 @@ def search_sample(
6868
include_citations=True,
6969
ignore_adversarial_query=True,
7070
ignore_non_summary_seeking_query=True,
71+
model_prompt_spec=discoveryengine.SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec(
72+
preamble="YOUR_CUSTOM_PROMPT"
73+
),
74+
model_spec=discoveryengine.SearchRequest.ContentSearchSpec.SummarySpec.ModelSpec(
75+
version="stable", # Options: stable, preview
76+
),
7177
),
7278
)
7379

endpoints/getting-started/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def echo():
5353

5454
# [START endpoints_auth_info_backend]
5555
def auth_info():
56-
"""Retrieves the authenication information from Google Cloud Endpoints."""
56+
"""Retrieves the authentication information from Google Cloud Endpoints."""
5757
encoded_info = request.headers.get("X-Endpoint-API-UserInfo", None)
5858
if encoded_info:
5959
info_json = _base64_decode(encoded_info)
@@ -89,7 +89,7 @@ def auth_info_firebase():
8989
@app.errorhandler(http_client.INTERNAL_SERVER_ERROR)
9090
def unexpected_error(e):
9191
"""Handle exceptions by returning swagger-compliant json."""
92-
logging.exception("An error occured while processing the request.")
92+
logging.exception("An error occurred while processing the request.")
9393
response = jsonify(
9494
{"code": http_client.INTERNAL_SERVER_ERROR, "message": f"Exception: {e}"}
9595
)

0 commit comments

Comments
 (0)