QuestionQ20

VerifiedGovernance

All of the following are Python APIs used to query Databricks foundation models. When working in an interactive notebook, which library does not automatically use the current session credentials?

Explanation

A REST call made with the requests library requires the caller to explicitly provide authentication, such as an authorization token/header; requests has no Databricks session-aware credential provider. The Databricks Python SDK handles authentication details, and the databricks-openai client is automatically configured with authorization for generative AI model queries.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!