Skip to content

Commit

Permalink
Merge pull request #1 from devalexandre/feat/add-tests
Browse files Browse the repository at this point in the history
Feat/add tests
  • Loading branch information
devalexandre authored Jul 5, 2024
2 parents f103741 + 2f6d156 commit 14d38a1
Show file tree
Hide file tree
Showing 8 changed files with 17,268 additions and 27 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
*.dll
*.so
*.dylib
.idea/

# Test binary, built with `go test -c`
*.test
Expand Down
8 changes: 2 additions & 6 deletions examples/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,15 @@ package main

import (
"fmt"
"log"

"github.com/devalexandre/langflowgo/langflowclient"
"log"
)

func main() {
flowIdOrName := "b87811d9-9974-4d11-bfab-4d4ff0b43160"
inputValue := "Qual o CNAE usado para pesca?"
stream := false
langflowClient := langflowclient.LangflowClient{
BaseURL: "http://127.0.0.1:7860",
APIKey: "",
}
langflowClient := langflowclient.NewLangflowClient()
tweaks := langflowclient.Options{
"OpenAIEmbeddings-gMvoo": langflowclient.Options{},
"Qdrant-NRPl4": langflowclient.Options{},
Expand Down
4 changes: 3 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module github.com/devalexandre/langflowgo

go 1.20
go 1.21

toolchain go1.22.0

require (
github.com/golang/protobuf v1.5.4 // indirect
Expand Down
Loading

0 comments on commit 14d38a1

Please sign in to comment.