Skip to content

Commit ff68ed6

Browse files
committed
Chore: Add golang.org/x/term dependency and fix typo in API doc
1 parent 0291035 commit ff68ed6

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

go.mod

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ require (
2828
golang.org/x/crypto v0.36.0 // indirect
2929
golang.org/x/sync v0.12.0 // indirect
3030
golang.org/x/sys v0.31.0 // indirect
31+
golang.org/x/term v0.30.0 // indirect
3132
golang.org/x/text v0.23.0 // indirect
3233
gopkg.in/yaml.v3 v3.0.1 // indirect
3334
)

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ golang.org/x/sys v0.30.0 h1:QjkSwP/36a20jFYWkSue1YwXzLmsV5Gfq7Eiy72C1uc=
5959
golang.org/x/sys v0.30.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
6060
golang.org/x/sys v0.31.0 h1:ioabZlmFYtWhL+TRYpcnNlLwhyxaM9kWTDEmfnprqik=
6161
golang.org/x/sys v0.31.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k=
62+
golang.org/x/term v0.30.0 h1:PQ39fJZ+mfadBm0y5WlL4vlM7Sx1Hgf13sMIY2+QS9Y=
63+
golang.org/x/term v0.30.0/go.mod h1:NYYFdzHoI5wRh/h5tDMdMqCqPJZEuNqVR5xJLd/n67g=
6264
golang.org/x/text v0.22.0 h1:bofq7m3/HAFvbF51jz3Q9wLg3jkvSPuiZu/pD1XwgtM=
6365
golang.org/x/text v0.22.0/go.mod h1:YRoo4H8PVmsu+E3Ou7cqLVH8oXWIHVoX0jqUWALQhfY=
6466
golang.org/x/text v0.23.0 h1:D71I7dUrlY+VX0gQShAThNGHFxZ13dGLBHQLVl1mJlY=

internal/web/api/handlers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ func searchByTitle(ctx context.Context, input *struct {
9595
// searchByBody handles the paper search endpoint
9696
func searchPaperBody(ctx context.Context, input *struct {
9797
Prompt string `query:"prompt" doc:"The prompt to search the "`
98-
Limit int `query:"limit" doc:"Limit the results (deaults to 15)"`
98+
Limit int `query:"limit" doc:"Limit the results (defaults to 15)"`
9999
}) (*PaperSearchBodyOutput, error) {
100100
if input.Prompt == "" {
101101
return nil, fmt.Errorf("empty prompts are not allowed in body searches")

0 commit comments

Comments
 (0)