Skip to content

Commit

Permalink
Added gen3-turbo support
Browse files Browse the repository at this point in the history
  • Loading branch information
igolaizola committed Sep 16, 2024
1 parent 13be091 commit 0f6e251
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func newGenerateCommand() *ffcli.Command {
fs.DurationVar(&cfg.Wait, "wait", 2*time.Second, "wait time between requests")
fs.StringVar(&cfg.Token, "token", "", "runway token")

fs.StringVar(&cfg.Model, "model", "gen2", "model to use (gen2 or gen3)")
fs.StringVar(&cfg.Model, "model", "gen3", "model to use (gen2, gen3, gen3-turbo)")
fs.StringVar(&cfg.Folder, "folder", "", "runway folder to store assets (optional)")
fs.StringVar(&cfg.Image, "image", "", "source image")
fs.StringVar(&cfg.Text, "text", "", "source text")
Expand Down
8 changes: 6 additions & 2 deletions pkg/runway/runway.go
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ func (c *Client) Generate(ctx context.Context, cfg *GenerateRequest) (*Generatio
},
AsTeamID: c.teamID,
}
case "gen3":
case "gen3", "gen3-turbo":
name := fmt.Sprintf("Gen-3 Alpha %d", seed)
if len(cfg.Prompt) > 0 {
v := cfg.Prompt
Expand All @@ -504,8 +504,12 @@ func (c *Client) Generate(ctx context.Context, cfg *GenerateRequest) (*Generatio
}
name = fmt.Sprintf("%s, %s", name, v)
}
taskType := "gen3a"
if cfg.Model == "gen3-turbo" {
taskType = "gen3a_turbo"
}
createReq = &createGen3TaskRequest{
TaskType: "gen3a",
TaskType: taskType,
Internal: false,
Options: gen3Options{
Name: name,
Expand Down

0 comments on commit 0f6e251

Please sign in to comment.