#openai python api used to call databricks models? What sorcery is this?

1 messages · Page 1 of 1 (latest)

minor flare
#

I saw some example code on nvidia site showing how to call databricks model using the openai python lib. How does this work?

ashen sparrowBOT
#

Hi @minor flare. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:

#

Hmm, I don't know enough to give you a confident answer yet. The knowledge sources provided do not contain information about using the OpenAI Python API to call Databricks models. The OpenAI Python API is typically used to interact with OpenAI's models, such as the GPT series of language models.

However, there is a mention of Databricks in the context of resolving an ImportError issue with the OpenAI Python library. In this case, users have found different solutions, such as using %pip install openai instead of !pip install openai in Databricks runtime, or adjusting the system path to use the correct package (source (https://github.com/openai/openai-python/issues/751)).

For more detailed information on how to use the OpenAI Python API, you can refer to the OpenAI API documentation (https://platform.openai.com/docs/quickstart). If you're interested in using Databricks with OpenAI, I would recommend reaching out to both OpenAI and Databricks support or checking their respective documentation and forums for more specific guidance.

Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: