Merge branch 'main' of https://git.johncosta.tech/JohnCosta27/Haystack
This commit is contained in:
@ -25,11 +25,10 @@ listLocations
|
||||
Lists the users already existing locations.
|
||||
|
||||
createLocation
|
||||
Use this to create a new location.
|
||||
Use this to create a new location, when you don't see a mtching one from listLocations call.
|
||||
|
||||
linkLocation
|
||||
Links an image to a location. Only call this when you know theres a very close match from listLocation.
|
||||
Otherwise create a new location.
|
||||
Use when an image contains a duplicate location the user already has from listLocations.
|
||||
|
||||
finish
|
||||
Call when there is nothing else to do.
|
||||
@ -72,7 +71,7 @@ const locationTools = `
|
||||
"type": "function",
|
||||
"function": {
|
||||
"name": "linkLocation",
|
||||
"description": "Use to link an already existing location to the image you were sent",
|
||||
"description": "Use only when you are sure listLocation returned the location in the image. This is used to avoid duplicates.",
|
||||
"parameters": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
@ -145,8 +145,6 @@ func main() {
|
||||
}
|
||||
}
|
||||
|
||||
fmt.Println("DataTypes: ", dataTypes)
|
||||
|
||||
jsonImages, err := json.Marshal(dataTypes)
|
||||
if err != nil {
|
||||
log.Println(err)
|
||||
|
Reference in New Issue
Block a user