@effect/ai-openai 0.13.0 → 0.13.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -25,7 +25,7 @@ import * as OpenAiTokenizer from "./OpenAiTokenizer.js"
25
25
  * @since 1.0.0
26
26
  * @category models
27
27
  */
28
- export type Model = typeof Generated.CreateChatCompletionRequestModel.Encoded
28
+ export type Model = typeof Generated.CreateChatCompletionRequestModelEnum.Encoded
29
29
 
30
30
  const make = (options: {
31
31
  readonly model: (string & {}) | Model
@@ -52,7 +52,21 @@ export declare namespace OpenAiConfig {
52
52
  * @since 1.0.0
53
53
  * @category configuration
54
54
  */
55
- export const withClientTransform = dual<
55
+ export const withClientTransform: {
56
+ /**
57
+ * @since 1.0.0
58
+ * @category configuration
59
+ */
60
+ (transform: (client: HttpClient) => HttpClient): <A, E, R>(self: Effect.Effect<A, E, R>) => Effect.Effect<A, E, R>
61
+ /**
62
+ * @since 1.0.0
63
+ * @category configuration
64
+ */
65
+ <A, E, R>(
66
+ self: Effect.Effect<A, E, R>,
67
+ transform: (client: HttpClient) => HttpClient
68
+ ): Effect.Effect<A, E, R>
69
+ } = dual<
56
70
  /**
57
71
  * @since 1.0.0
58
72
  * @category configuration
@@ -15,7 +15,7 @@ import { OpenAiClient } from "./OpenAiClient.js"
15
15
  * @since 1.0.0
16
16
  * @category models
17
17
  */
18
- export type Model = typeof Generated.CreateEmbeddingRequestModel.Encoded
18
+ export type Model = typeof Generated.CreateEmbeddingRequestModelEnum.Encoded
19
19
 
20
20
  /**
21
21
  * @since 1.0.0