Skip to content

Conversation

@sunishsheth2009
Copy link
Contributor

@sunishsheth2009 sunishsheth2009 commented Jan 14, 2025

What changes are proposed in this pull request?

  • [Fix] Fixing http_request open_ai_client mixin

How is this tested?

https://dbc-436b86a5-6d5b.dev.databricks.com/editor/notebooks/2465247895264388?o=1593823105423000#command/7927901211745840

from databricks.sdk import WorkspaceClient
from databricks.sdk.service.serving import ExternalFunctionRequestHttpMethod

WorkspaceClient().serving_endpoints.http_request(
    conn="test_sql_slack",
    method=ExternalFunctionRequestHttpMethod.POST,
    path="/api/chat.postMessage",
    json={"channel": "C07MB25Q6H3", "text": "Hello!"}
)

Tried this and it works

@sunishsheth2009 sunishsheth2009 changed the title Adding the missing super() for open_ai_client [Bugfix] Adding the missing super() for open_ai_client Jan 14, 2025
@sunishsheth2009 sunishsheth2009 changed the title [Bugfix] Adding the missing super() for open_ai_client [Fix] Adding the missing super() for open_ai_client Jan 14, 2025
@sunishsheth2009 sunishsheth2009 changed the title [Fix] Adding the missing super() for open_ai_client [Fix] Fixing http_request open_ai_client mixin Jan 15, 2025
@github-actions
Copy link

If integration tests don't run automatically, an authorized user can run them manually by following the instructions below:

Trigger:
go/deco-tests-run/sdk-py

Inputs:

  • PR number: 859
  • Commit SHA: ee3b9225d74d21695f1f4092eb9f5eec415c0018

Checks will be approved automatically on success.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant