You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In alternative one can build a docker image by running
cd yarp-devices-llm
docker build -t <my-img-name> .
Configuration
You need to copy .env-template into a .env file with the correct information regarding your OpenAI deployment. Note that currently GPTDevice works only with an Azure instance of GPT.
Remember to source the .env file in order to allow the device to connect to your GPT instance.
set -a
source .env
set +a
Usage
Assuming that the user has already installed YARP and the related LLM devices, one can use this basic configuration example
yarpserver
set -a
source .env
set +a
yarprobotinterface --from assets/LLMDeviceExample.xml
yarp rpc /yarpgpt/rpc
>>help
Responses:
*** Available commands:
setPrompt
readPrompt
ask
getConversation
deleteConversation
help
>>setPrompt "You are a geography expert who is very concise in its answers"
Response: [ok]
>>ask "What is the capital of Italy?"
Response: [ok] Rome. #This answer may vary in the form, hopefully not in the content.
CI Status
License
This software is distributed under the terms of the BSD-3-Clause.