mirror of
https://github.com/IntelligenzaArtificiale/Free-Auto-GPT.git
synced 2026-07-03 13:15:41 +02:00
add Custom Agent
This commit is contained in:
committed by
GitHub
parent
c605c693a0
commit
a3a4963755
@@ -133,7 +133,11 @@ We then created a custom LLM wrapper with langchain, **which can be used as a pl
|
||||
from FreeLLM import ChatGPTAPI
|
||||
|
||||
# Instantiate a ChatGPT object with your token
|
||||
llm = ChatGPTAPI.ChatGPT((token="YOURTOKEN")
|
||||
llm = ChatGPTAPI.ChatGPT((token="YOURTOKEN") #for start new chat
|
||||
|
||||
# or if if u would to start from an existing chat
|
||||
# llm = ChatGPT(token = "YOUR-TOKEN", conversation = "Add-XXXX-XXXX-Convesation-ID")
|
||||
|
||||
|
||||
# Generate a response based on the given prompt
|
||||
response = llm("Hello, how are you?")
|
||||
|
||||
Reference in New Issue
Block a user