fix(opencode): support native OpenAI OAuth fetch (#28571)

This commit is contained in:
Kit Langton
2026-05-20 23:29:25 -04:00
committed by GitHub
parent 2b28cc9024
commit facd207396
9 changed files with 418 additions and 161 deletions
@@ -34,7 +34,6 @@ type PrepareInput = {
}
export type Prepared = {
readonly isOpenaiOauth: boolean
readonly system: string[]
readonly messages: ModelMessage[]
readonly tools: Record<string, Tool>
@@ -161,7 +160,6 @@ export const prepare = Effect.fn("LLMRequestPrep.prepare")(function* (input: Pre
: undefined
return {
isOpenaiOauth,
system,
messages,
tools: Object.fromEntries(Object.entries(tools).toSorted(([a], [b]) => a.localeCompare(b))),