Skip to content

Commit 7f0743e

Browse files
committed
remove AiModels
1 parent 565988f commit 7f0743e

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

packages/ai/anthropic/src/AnthropicClient.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
*/
44
import * as AiError from "@effect/ai/AiError"
55
import * as AiInput from "@effect/ai/AiInput"
6-
import * as AiModels from "@effect/ai/AiModels"
76
import * as AiResponse from "@effect/ai/AiResponse"
87
import * as Sse from "@effect/experimental/Sse"
98
import * as HttpBody from "@effect/platform/HttpBody"
@@ -313,10 +312,10 @@ export const layer = (options: {
313312
client: HttpClient.HttpClient
314313
) => HttpClient.HttpClient
315314
}): Layer.Layer<
316-
AiModels.AiModels | AnthropicClient,
315+
AnthropicClient,
317316
never,
318317
HttpClient.HttpClient
319-
> => Layer.merge(AiModels.layer, Layer.effect(AnthropicClient, make(options)))
318+
> => Layer.effect(AnthropicClient, make(options))
320319

321320
/**
322321
* @since 1.0.0
@@ -332,14 +331,13 @@ export const layerConfig = (
332331
) => HttpClient.HttpClient
333332
}>
334333
): Layer.Layer<
335-
AiModels.AiModels | AnthropicClient,
334+
AnthropicClient,
336335
ConfigError,
337336
HttpClient.HttpClient
338337
> =>
339338
Config.unwrap(options).pipe(
340339
Effect.flatMap(make),
341-
Layer.effect(AnthropicClient),
342-
Layer.merge(AiModels.layer)
340+
Layer.effect(AnthropicClient)
343341
)
344342

345343
/**

0 commit comments

Comments
 (0)