Skip to content

perplexity config error #14

@SinarSaktiInternasional

Description

@SinarSaktiInternasional

How to getting TAVILY_KEY

this is a log of error

{"level":"warn","ts":1751608517.2293015,"caller":"tools/websearch.go:93","msg":"Websearch tool requires TAVILY_KEY environment variable to be set"}
panic: runtime error: index out of range [0] with length 0

goroutine 1 [running]:
github.com/laszukdawid/terminal-agent/internal/connector.(*PerplexityConnector).Query(0xc000426260, {0xc0005a8c90?, 0xc0005a8c60?}, 0xc0004262e0)
/home/runner/work/terminal-agent/terminal-agent/internal/connector/perplexity.go:115 +0xbfc
github.com/laszukdawid/terminal-agent/internal/agent.(*Agent).Question(0xc0005a8d20, {0x19bb4f0, 0x253d500}, {0x7ffc6cf72296, 0xf}, 0x0)
/home/runner/work/terminal-agent/terminal-agent/internal/agent/agent.go:72 +0xde
github.com/laszukdawid/terminal-agent/internal/commands.NewQuestionCommand.func1(0xc000544c08, {0xc000680380, 0x1, 0x1})
/home/runner/work/terminal-agent/terminal-agent/internal/commands/ask_cmd.go:44 +0x1f2
github.com/spf13/cobra.(*Command).execute(0xc000544c08, {0xc000680350, 0x1, 0x1})
/home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:1015 +0xa94
github.com/spf13/cobra.(*Command).ExecuteC(0xc000544008)
/home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:1148 +0x40c
github.com/spf13/cobra.(*Command).Execute(...)
/home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:1071
github.com/spf13/cobra.(*Command).ExecuteContext(...)
/home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:1064
main.mainRun()
/home/runner/work/terminal-agent/terminal-agent/cmd/agent/main.go:107 +0x388
main.main()
/home/runner/work/terminal-agent/terminal-agent/cmd/agent/main.go:84 +0x13

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions