fix(core): clarify web search provider prompt (#39123)
This commit is contained in:
parent
9977ef0160
commit
7d4de3d9e4
1 changed files with 2 additions and 2 deletions
|
|
@ -58,13 +58,13 @@ export const Plugin = {
|
||||||
if (providers.length === 0) return yield* new WebSearch.ProviderRequiredError()
|
if (providers.length === 0) return yield* new WebSearch.ProviderRequiredError()
|
||||||
const response = yield* forms.ask({
|
const response = yield* forms.ask({
|
||||||
sessionID: context.sessionID,
|
sessionID: context.sessionID,
|
||||||
title: "Choose a web search provider",
|
title: "Choose a provider so the agent can search the web",
|
||||||
metadata: { kind: "websearch.provider" },
|
metadata: { kind: "websearch.provider" },
|
||||||
fields: [
|
fields: [
|
||||||
{
|
{
|
||||||
key: "provider",
|
key: "provider",
|
||||||
title: "Provider",
|
title: "Provider",
|
||||||
description: "This becomes your default and can be changed later in configuration.",
|
description: "OpenCode will use your choice for future searches.",
|
||||||
type: "string",
|
type: "string",
|
||||||
required: true,
|
required: true,
|
||||||
custom: false,
|
custom: false,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue