feat(api): implement stateful responses api (#122)
* feat(api): implement stateful responses api Signed-off-by: mudler <mudler@localai.io> * fix(tests): align client to API changes Signed-off-by: mudler <mudler@localai.io> --------- Signed-off-by: mudler <mudler@localai.io>
This commit is contained in:
committed by
GitHub
parent
86cb9f1282
commit
f3c06b1bfb
2
main.go
2
main.go
@@ -21,6 +21,7 @@ var localRAG = os.Getenv("LOCALAGENT_LOCALRAG_URL")
|
||||
var withLogs = os.Getenv("LOCALAGENT_ENABLE_CONVERSATIONS_LOGGING") == "true"
|
||||
var apiKeysEnv = os.Getenv("LOCALAGENT_API_KEYS")
|
||||
var imageModel = os.Getenv("LOCALAGENT_IMAGE_MODEL")
|
||||
var conversationDuration = os.Getenv("LOCALAGENT_CONVERSATION_DURATION")
|
||||
|
||||
func init() {
|
||||
if testModel == "" {
|
||||
@@ -73,6 +74,7 @@ func main() {
|
||||
// Create the application
|
||||
app := webui.NewApp(
|
||||
webui.WithPool(pool),
|
||||
webui.WithConversationStoreduration(conversationDuration),
|
||||
webui.WithApiKeys(apiKeys...),
|
||||
webui.WithLLMAPIUrl(apiURL),
|
||||
webui.WithLLMAPIKey(apiKey),
|
||||
|
||||
Reference in New Issue
Block a user