Skip to content

Commit

Permalink
ref: set max tokens arg to -t and --tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
yiblet committed Feb 7, 2024
1 parent a30e0cf commit ca584ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ask_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ chmod -R 644 /path/to/directory/

type askCmd struct {
Question []string `arg:"positional"`
MaxTokens int `default:"0"`
Temperature float32 `default:"0.7"`
MaxTokens int `arg:"--tokens,-t" default:"0" help:"the maximum amount of tokens allowed in the output"`
Temperature float32 `arg:"--temp" default:"0.7"`
Bash bool `arg:"--bash" help:"output only valid bash"`
Model string `arg:"--model,-m" help:"set openai model"`
Attach []string `arg:"--attach,-a,separate" help:"attach additional files at the end of the message. pass '-' to pass in stdin"`
Expand Down
4 changes: 2 additions & 2 deletions chat_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ import (
type chatCmd struct {
File string `arg:"required,positional" help:"the input chat file, if you pass - the command will read from stdin"`
Write *string `arg:"positional" help:"the output chat file, if you pass - the output will be the same as input"`
MaxTokens int `default:"0"`
Temperature float32 `default:"0.7"`
MaxTokens int `arg:"--tokens,-t" default:"0" help:"the maximum amount of tokens allowed in the output"`
Temperature float32 `-arg:"--temp" default:"0.7"`
Color bool `default:"false"`
Model string `arg:"--model,-m" help:"set openai model"`
}
Expand Down

0 comments on commit ca584ba

Please sign in to comment.