Skip to content

sambuddhabasu/amari-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Amari Python Library

Amari connects your OpenAI calls to the internet. It automatically understands when your OpenAI calls need relevant real-time information from the internet and, augments your calls with them.

Installation

You can install this package by running

pip install amari-python

Example

from amari import openai
openai.amari_api_key = "..."
openai.api_key = "sk-..."

chat_completion = openai.ChatCompletion.create(
    model="gpt-3.5-turbo", 
    messages=[{
        "role": "user",
        "content": "What's the weather in San Francisco today?"
    }],
    temperature=0,
)

print(chat_completion.choices[0].message.content)
# The current weather in San Francisco is 69°F with mostly sunny conditions.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published