Skip to content

am-mohammadi/llmplus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

llmplus

Usage

from llmplus.ChatGot.api import API, Models
authorization_key = 'your authorization key from website headers'
api = API(authorization_key)
    
api.model = Models.GPT4()
answer = api.send('who is the manager of the real madrid?')

asnwer2  = api.send('who is the CEO?')

Models

Models.GPT4
Models.GPT3
Models.Claude2

Acsess to the chat history

API.json_data['messages']

Extracting code block set extract_code to the type of code block to return just the code block

asnwer2 = api.send('who is the CEO?', extract_code = "json")

LLM output: #===================== your output is here

{"a": "ssdgs"}

#=====================

LLM output with extract_code: #===================== {"a": "ssdgs"} #=====================

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages