@effect/ai-openai-compat 4.0.0-beta.71 → 4.0.0-beta.73
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.
- package/dist/OpenAiClient.d.ts +1 -1
- package/dist/OpenAiClient.js +1 -1
- package/dist/OpenAiConfig.d.ts +2 -2
- package/dist/OpenAiConfig.js +2 -2
- package/dist/OpenAiEmbeddingModel.d.ts +1 -1
- package/dist/OpenAiEmbeddingModel.js +1 -1
- package/dist/OpenAiLanguageModel.d.ts +1 -1
- package/dist/OpenAiLanguageModel.js +1 -1
- package/package.json +3 -3
- package/src/OpenAiClient.ts +1 -1
- package/src/OpenAiConfig.ts +2 -2
- package/src/OpenAiEmbeddingModel.ts +1 -1
- package/src/OpenAiLanguageModel.ts +1 -1
package/dist/OpenAiClient.d.ts
CHANGED
|
@@ -34,7 +34,7 @@ export interface Service {
|
|
|
34
34
|
}
|
|
35
35
|
declare const OpenAiClient_base: Context.ServiceClass<OpenAiClient, "@effect/ai-openai-compat/OpenAiClient", Service>;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* Service tag for the OpenAI-compatible chat completions and embeddings client.
|
|
38
38
|
*
|
|
39
39
|
* **When to use**
|
|
40
40
|
*
|
package/dist/OpenAiClient.js
CHANGED
|
@@ -40,7 +40,7 @@ import * as HttpClientResponse from "effect/unstable/http/HttpClientResponse";
|
|
|
40
40
|
import * as Errors from "./internal/errors.js";
|
|
41
41
|
import { OpenAiConfig } from "./OpenAiConfig.js";
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* Service tag for the OpenAI-compatible chat completions and embeddings client.
|
|
44
44
|
*
|
|
45
45
|
* **When to use**
|
|
46
46
|
*
|
package/dist/OpenAiConfig.d.ts
CHANGED
|
@@ -26,8 +26,8 @@ import * as Effect from "effect/Effect";
|
|
|
26
26
|
import type { HttpClient } from "effect/unstable/http/HttpClient";
|
|
27
27
|
declare const OpenAiConfig_base: Context.ServiceClass<OpenAiConfig, "@effect/ai-openai-compat/OpenAiConfig", OpenAiConfig.Service>;
|
|
28
28
|
/**
|
|
29
|
-
* Context service
|
|
30
|
-
*
|
|
29
|
+
* Context service for OpenAI-compatible client configuration in the current
|
|
30
|
+
* Effect scope.
|
|
31
31
|
*
|
|
32
32
|
* **When to use**
|
|
33
33
|
*
|
package/dist/OpenAiConfig.js
CHANGED
|
@@ -25,8 +25,8 @@ import * as Context from "effect/Context";
|
|
|
25
25
|
import * as Effect from "effect/Effect";
|
|
26
26
|
import { dual } from "effect/Function";
|
|
27
27
|
/**
|
|
28
|
-
* Context service
|
|
29
|
-
*
|
|
28
|
+
* Context service for OpenAI-compatible client configuration in the current
|
|
29
|
+
* Effect scope.
|
|
30
30
|
*
|
|
31
31
|
* **When to use**
|
|
32
32
|
*
|
|
@@ -56,7 +56,7 @@ declare const Config_base: Context.ServiceClass<Config, "@effect/ai-openai-compa
|
|
|
56
56
|
readonly dimensions?: number | undefined | undefined;
|
|
57
57
|
}>;
|
|
58
58
|
/**
|
|
59
|
-
*
|
|
59
|
+
* Context service for OpenAI embedding model configuration.
|
|
60
60
|
*
|
|
61
61
|
* **When to use**
|
|
62
62
|
*
|
|
@@ -44,7 +44,7 @@ import * as EmbeddingModel from "effect/unstable/ai/EmbeddingModel";
|
|
|
44
44
|
import * as AiModel from "effect/unstable/ai/Model";
|
|
45
45
|
import { OpenAiClient } from "./OpenAiClient.js";
|
|
46
46
|
/**
|
|
47
|
-
*
|
|
47
|
+
* Context service for OpenAI embedding model configuration.
|
|
48
48
|
*
|
|
49
49
|
* **When to use**
|
|
50
50
|
*
|
|
@@ -87,7 +87,7 @@ declare const Config_base: Context.ServiceClass<Config, "@effect/ai-openai-compa
|
|
|
87
87
|
readonly strictJsonSchema?: boolean | undefined | undefined;
|
|
88
88
|
}>;
|
|
89
89
|
/**
|
|
90
|
-
*
|
|
90
|
+
* Context service for OpenAI language model configuration.
|
|
91
91
|
*
|
|
92
92
|
* **When to use**
|
|
93
93
|
*
|
|
@@ -55,7 +55,7 @@ import { addGenAIAnnotations } from "./OpenAiTelemetry.js";
|
|
|
55
55
|
// Configuration
|
|
56
56
|
// =============================================================================
|
|
57
57
|
/**
|
|
58
|
-
*
|
|
58
|
+
* Context service for OpenAI language model configuration.
|
|
59
59
|
*
|
|
60
60
|
* **When to use**
|
|
61
61
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effect/ai-openai-compat",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.73",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "An OpenAI compat integration for Effect",
|
|
@@ -45,10 +45,10 @@
|
|
|
45
45
|
"provenance": true
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"effect": "^4.0.0-beta.
|
|
48
|
+
"effect": "^4.0.0-beta.73"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
|
-
"effect": "^4.0.0-beta.
|
|
51
|
+
"effect": "^4.0.0-beta.73"
|
|
52
52
|
},
|
|
53
53
|
"scripts": {
|
|
54
54
|
"codegen": "effect-utils codegen",
|
package/src/OpenAiClient.ts
CHANGED
package/src/OpenAiConfig.ts
CHANGED
|
@@ -27,8 +27,8 @@ import { dual } from "effect/Function"
|
|
|
27
27
|
import type { HttpClient } from "effect/unstable/http/HttpClient"
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
|
-
* Context service
|
|
31
|
-
*
|
|
30
|
+
* Context service for OpenAI-compatible client configuration in the current
|
|
31
|
+
* Effect scope.
|
|
32
32
|
*
|
|
33
33
|
* **When to use**
|
|
34
34
|
*
|
|
@@ -85,7 +85,7 @@ type ImageDetail = "auto" | "low" | "high"
|
|
|
85
85
|
// =============================================================================
|
|
86
86
|
|
|
87
87
|
/**
|
|
88
|
-
*
|
|
88
|
+
* Context service for OpenAI language model configuration.
|
|
89
89
|
*
|
|
90
90
|
* **When to use**
|
|
91
91
|
*
|