Skip to content

withmartian/martian-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Martian Python Library

Installation

You can install this package by running

pip install martian-python

Usage

See the Martian API documentation at docs.withmartian.com.

Example

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)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published