Skip to content

Commit

Permalink
fix: change sensitivity name to temperature
Browse files Browse the repository at this point in the history
  • Loading branch information
jigsaw373 committed Apr 28, 2023
1 parent c8725d6 commit 1970f20
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@


![GolangCI Lint](https://github.com/ia-ops/terraform-ai/workflows/GolangCI%20Lint/badge.svg)
[![codecov](https://codecov.io/gh/ia-ops/terraform-ai/branch/main/graph/badge.svg?token=EN9DMB7AVN)](https://codecov.io/gh/ia-ops/terraform-ai)
[![codecov](https://codecov.io/gh/ia-ops/terraform-ai/branch/main/graph/badge.svg?token=EN9DMB7AVN)](https://codecov.io/gh/ia-ops/terraform-ai)
2 changes: 1 addition & 1 deletion cmd/cli/completion.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func newOAIClients() (oaiClients, error) {
}

func completion(ctx context.Context, client oaiClients, prompts []string, deploymentName string, subcommand string) (string, error) {
temp := float32(*sensitivity)
temp := float32(*temperature)

maxTokens, err := calculateMaxTokens(prompts, deploymentName)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion cmd/cli/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ var (
openAIAPIKey = flag.String("openai-api-key", env.GetOr("OPENAI_API_KEY", env.String, ""), "The API key for the OpenAI service. This is required.")
azureOpenAIEndpoint = flag.String("azure-openai-endpoint", env.GetOr("AZURE_OPENAI_ENDPOINT", env.String, ""), "The endpoint for Azure OpenAI service. If provided, Azure OpenAI service will be used instead of OpenAI service.")
requireConfirmation = flag.Bool("require-confirmation", env.GetOr("REQUIRE_CONFIRMATION", strconv.ParseBool, true), "Whether to require confirmation before executing the command. Defaults to true.")
sensitivity = flag.Float64("sensitivity", env.GetOr("SENSITIVITY", env.WithBitSize(strconv.ParseFloat, 64), 0.0), "The sensitivity to use for the model. Range is between 0 and 1. Set closer to 0 if your want output to be more deterministic but less creative. Defaults to 0.0.")
temperature = flag.Float64("temperature", env.GetOr("TEMPERATURE", env.WithBitSize(strconv.ParseFloat, 64), 0.0), "The temperature to use for the model. Range is between 0 and 1. Set closer to 0 if your want output to be more deterministic but less creative. Defaults to 0.0.")
workingDir = flag.String("working-dir", env.GetOr("WORKING_DIR", env.String, ""), "The path of project that you want to run.")
execDir = flag.String("exec-dir", env.GetOr("WORKING_DIR", env.String, ""), "The path of terraform.")
ops terraform.Ops
Expand Down

0 comments on commit 1970f20

Please sign in to comment.