Skip to content

Add cohere tools

Add cohere tools #529

Triggered via pull request June 7, 2024 14:45
Status Failure
Total duration 40s
Artifacts

checks.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 3 warnings
lint: tool/python/python.go#L25
line is 131 characters (lll)
lint: llm/cohere/cohere.go#L335
cognitive complexity 35 of func `(*Cohere).getChatCompletionRequestTools` is high (> 20) (gocognit)
lint: llm/cohere/formatter.go#L32
cognitive complexity 26 of func `threadToChatMessages` is high (> 20) (gocognit)
lint: llm/cohere/formatter.go#L102
line is 126 characters (lll)
lint: llm/cohere/formatter.go#L37
unnecessary leading newline (whitespace)
lint: llm/cohere/formatter.go#L72
unnecessary trailing newline (whitespace)
lint: llm/cohere/formatter.go#L117
unnecessary leading newline (whitespace)
lint: llm/cohere/formatter.go#L140
unnecessary trailing newline (whitespace)
lint: llm/cohere/formatter.go#L39
missing cases in switch of type thread.Role: thread.RoleTool (exhaustive)
lint: llm/cohere/cohere.go#L126
SA1019: c.client.Generate is deprecated: this is part of legacy API (staticcheck)
lint
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-go@v4, actions/checkout@v3, golangci/golangci-lint-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
lint: llm/cohere/cohere.go#L447
receiver-naming: receiver name o should be consistent with previous receiver name c for Cohere (revive)
lint: llm/cohere/cohere.go#L465
receiver-naming: receiver name o should be consistent with previous receiver name c for Cohere (revive)