Skip to content

Commit

Permalink
tweak enum name
Browse files Browse the repository at this point in the history
  • Loading branch information
jba committed Apr 9, 2024
1 parent 74378f9 commit 0df66a6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions vertexai/genai/aiplatformpb_veneer.gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -413,8 +413,8 @@ func (FunctionCallingConfig) fromProto(p *pb.FunctionCallingConfig) *FunctionCal
type FunctionCallingMode int32

const (
// FunctionCallingModeUnspecified means unspecified function calling mode. This value should not be used.
FunctionCallingModeUnspecified FunctionCallingMode = 0
// FunctionCallingUnspecified means unspecified function calling mode. This value should not be used.
FunctionCallingUnspecified FunctionCallingMode = 0
// FunctionCallingAuto means default model behavior, model decides to predict either a function call
// or a natural language repspose.
FunctionCallingAuto FunctionCallingMode = 1
Expand All @@ -429,10 +429,10 @@ const (
)

var namesForFunctionCallingMode = map[FunctionCallingMode]string{
FunctionCallingModeUnspecified: "FunctionCallingModeUnspecified",
FunctionCallingAuto: "FunctionCallingAuto",
FunctionCallingAny: "FunctionCallingAny",
FunctionCallingNone: "FunctionCallingNone",
FunctionCallingUnspecified: "FunctionCallingUnspecified",
FunctionCallingAuto: "FunctionCallingAuto",
FunctionCallingAny: "FunctionCallingAny",
FunctionCallingNone: "FunctionCallingNone",
}

func (v FunctionCallingMode) String() string {
Expand Down
2 changes: 1 addition & 1 deletion vertexai/genai/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ types:
protoPrefix: FunctionCallingConfig
veneerPrefix: FunctionCalling
valueNames:
FunctionCallingConfig_MODE_UNSPECIFIED: FunctionCallingModeUnspecified
FunctionCallingConfig_MODE_UNSPECIFIED: FunctionCallingUnspecified

GenerationConfig:
fields:
Expand Down

0 comments on commit 0df66a6

Please sign in to comment.