A developer wants to query a Databricks-hosted foundation model using the OpenAI Python client after installing databricks-openai. Which client configuration is correct?
api_key to a Databricks token and base_url to the workspace's serving endpoints URL.api_key to an OpenAI API key and base_url to https://api.openai.com/v1.api_key to a Databricks token only; no base_url is needed since the client auto-detects Databricks.organization to the Databricks workspace ID and use the default OpenAI endpoints.More Application Development Questions
60 questions
Full Databricks Certified Generative AI Engineer Associate Practice Test
All topics covered
All Databricks Certified Generative AI Engineer Associate Questions
Browse by topic
Related Questions
When using MLflow's code-based logging (Models from Code) for an AI agent, what is the purpose of ca...
Which MLflow function is used to log a LangChain agent using the code-based logging approach on Data...
What are the two resources a developer must create before querying documents using Mosaic AI Vector ...
Which three task types are supported by the Foundation Model APIs `task` parameter when configuring ...
A RAG system retrieves product support documents containing specialized component identifiers such a...
Educational Content — CertQnA practice questions are written against official exam objectives, covering the same domains tested on the real exam. All content is original and independent — not actual exam questions, not affiliated with any certification vendor. Learn more about our content policy
Discussion
Be the first to share your understanding of this concept
Sign in to join the discussion