You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 1c0f6df
Browse filesBrowse the repository at this point in the historyBrowse files
- 목적과 의도: Route GPT 5.6 Luna to the Responses endpoint that OpenCode Go documents for that exact model.
1247
1253
- 기존 구현 및 제약 조건: The provider is mixed-wire but its provider-wide `openai-chat` adapter sent Luna to `/chat/completions`; explicit user `modelAdapters` entries must remain authoritative.
- 다른 대안 대신 이 방식을 선택한 이유: OpenCode Go documents sibling models on Chat or Anthropic endpoints, and an exact registry default preserves both those routes and explicit opt-out precedence.
1251
1257
- 장점, 단점 및 영향: Luna reaches `/responses` from every inbound surface without changing siblings; a future upstream endpoint change requires an evidence-backed registry update.
Copy file name to clipboardExpand all lines: src/web-search/executor.ts
+74Lines changed: 74 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -111,3 +111,77 @@ export async function runWebSearch(
111
111
linkedSignal.cleanup();
112
112
}
113
113
}
114
+
115
+
exportinterfaceKeyedWebSearchRequest{
116
+
/** Resolved provider name (for logs). */
117
+
providerName: string;
118
+
/** Resolved key-auth provider pointing at an openai-responses wire. */
119
+
provider: OcxProviderConfig;
120
+
/** The resolved plaintext API key (already validated present). */
121
+
apiKey: string;
122
+
}
123
+
124
+
/**
125
+
* Execute ONE web search via a key-fed openai-responses provider that natively serves hosted
126
+
* web_search (e.g. OpenCode Zen at https://opencode.ai/zen/go/v1). Authenticates with the provider's
127
+
* own API key via `Authorization: Bearer <apiKey>` — it must NEVER touch the ChatGPT forward headers
128
+
* or the Anthropic stored-OAuth credential, so neither ChatGPT nor Anthropic quota is consumed.
129
+
* Reuses the hosted web_search tool verbatim and the shared SSE parser. Never throws.
0 commit comments