Skip to content

Commit

Permalink
fix enum type
Browse files Browse the repository at this point in the history
  • Loading branch information
David Motsonashvili committed Mar 19, 2024
1 parent 9d30869 commit 24f3a80
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion generativeai/gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version=0.2.2
version=1.2.2
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,13 @@ class ParameterDeclaration<T>(
)

fun enum(name: String, description: String, values: List<String>) =
ParameterDeclaration<String>(name, description, "enum", values, FunctionType.STRING)
ParameterDeclaration<String>(
name = name,
description = description,
format = "enum",
enum = values,
type = FunctionType.STRING,
)
}
}

Expand Down

0 comments on commit 24f3a80

Please sign in to comment.