You can install this package by running
pip install martian-python
See the Martian API documentation at docs.withmartian.com.
from martian import openai
openai.martian_api_key = ...
chat_completion = openai.ChatCompletion.create(
# model="gpt-3.5-turbo",
messages=[{"role": "user", "content": "Hello world"}]
)
print(chat_completion.choices[0].message.content)