Skip to content

Commit f7ca55f

Browse files
kitlangtonrustybret
authored andcommitted
refactor(opencode): extract session LLM request prep (anomalyco#28560)
1 parent 747abd0 commit f7ca55f

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

  • packages/opencode/src/session

packages/opencode/src/session/llm.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { Provider } from "@/provider/provider"
2-
import { serviceUse } from "@/effect/service-use"
32
import * as Log from "@opencode-ai/core/util/log"
43
import { Context, Effect, Layer } from "effect"
54
import * as Stream from "effect/Stream"
@@ -55,8 +54,6 @@ export interface Interface {
5554

5655
export class Service extends Context.Service<Service, Interface>()("@opencode/LLM") {}
5756

58-
export const use = serviceUse(Service)
59-
6057
const live: Layer.Layer<
6158
Service,
6259
never,
@@ -223,6 +220,8 @@ const live: Layer.Layer<
223220
provider: item,
224221
auth: info,
225222
llmClient,
223+
isOpenaiOauth: prepared.isOpenaiOauth,
224+
system: prepared.system,
226225
messages: prepared.messages,
227226
tools: prepared.tools,
228227
toolChoice: input.toolChoice,

0 commit comments

Comments
 (0)