Skip to content

Commit af91379

Browse files
fix linting failures
1 parent 22afe2b commit af91379

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

src/datacustomcode/einstein_platform_client.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
Optional,
2020
)
2121

22-
from abc import ABC
2322
from loguru import logger
2423

2524
from datacustomcode.token_provider import (
@@ -29,7 +28,7 @@
2928
)
3029

3130

32-
class EinsteinPlatformClient(ABC):
31+
class EinsteinPlatformClient:
3332
EINSTEIN_PLATFORM_URL = "https://api.salesforce.com/einstein/platform/v1"
3433
EINSTEIN_WARNING_MESSAGE = (
3534
"If your code uses Einstein APIs, make sure you have "

src/datacustomcode/templates/function/payload/entrypoint.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ def make_einstein_prediction(runtime: Runtime) -> None:
6767

6868
def generate_text(runtime: Runtime):
6969
builder = GenerateTextRequestBuilder()
70-
llm_request = builder.set_prompt("Generate 2 dog names").set_model("sfdc_ai__DefaultGPT52").build()
70+
llm_request = builder.set_prompt("Generate 2 dog names").\
71+
set_model("sfdc_ai__DefaultGPT52").build()
7172
llm_response = runtime.llm_gateway.generate_text(llm_request)
7273

7374
if llm_response.is_success:
@@ -84,7 +85,8 @@ def function(request: dict, runtime: Runtime) -> dict:
8485
current_seq_no = 1 # Start sequence number from 1
8586

8687
"""
87-
You can use your AI models configured in Salesforce to generate texts or predict an outcome
88+
You can use your AI models configured in Salesforce
89+
to generate texts or predict an outcome
8890
"""
8991
# generate_text(runtime)
9092
# make_einstein_prediction(runtime)

0 commit comments

Comments
 (0)