@effect-uai/responses 0.17.0 → 0.18.0
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/README.md +3 -3
- package/dist/OpenAIDeepResearch.d.mts +1 -1
- package/dist/OpenAIDeepResearch.mjs +2 -2
- package/dist/OpenAIDeepResearch.mjs.map +1 -1
- package/dist/OpenAIEmbedding.d.mts +1 -1
- package/dist/OpenAIEmbedding.mjs +2 -2
- package/dist/OpenAIEmbedding.mjs.map +1 -1
- package/dist/Responses.d.mts +1 -1
- package/dist/Responses.mjs +2 -2
- package/dist/Responses.mjs.map +1 -1
- package/dist/ResponsesTools.mjs +1 -1
- package/dist/codec.d.mts.map +1 -1
- package/dist/codec.mjs +4 -3
- package/dist/codec.mjs.map +1 -1
- package/dist/codec.test.mjs +1 -1
- package/dist/dist-DHer1cql.mjs +1533 -0
- package/dist/dist-DHer1cql.mjs.map +1 -0
- package/dist/{test.DNmyFkvJ-N3QqMRwZ.mjs → index.C4tKZ0yW-xEu55bU4.mjs} +8276 -7092
- package/dist/index.C4tKZ0yW-xEu55bU4.mjs.map +1 -0
- package/dist/region.test.mjs +1 -1
- package/dist/responsesTools.test.mjs +1 -1
- package/dist/{rolldown-runtime-D7D4PA-g.mjs → rolldown-runtime-EAsCxrDo.mjs} +2 -1
- package/dist/streamEvents.mjs +1 -1
- package/package.json +4 -4
- package/src/OpenAIDeepResearch.ts +1 -1
- package/src/OpenAIEmbedding.ts +1 -1
- package/src/Responses.ts +1 -1
- package/src/codec.ts +3 -2
- package/dist/magic-string.es-CUAnjKYC.mjs +0 -1014
- package/dist/magic-string.es-CUAnjKYC.mjs.map +0 -1
- package/dist/test.DNmyFkvJ-N3QqMRwZ.mjs.map +0 -1
package/dist/region.test.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { resolveHost } from "./region.mjs";
|
|
2
|
-
import { n as describe, r as it, t as globalExpect } from "./
|
|
2
|
+
import { n as describe, r as it, t as globalExpect } from "./index.C4tKZ0yW-xEu55bU4.mjs";
|
|
3
3
|
//#region src/region.test.ts
|
|
4
4
|
describe("responses/region.resolveHost", () => {
|
|
5
5
|
it("returns default host when no region or baseUrl", () => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { codeInterpreterTool, fileSearchTool, renderProviderTools, webSearchTool } from "./ResponsesTools.mjs";
|
|
2
2
|
import { KnownProviderEvent, eventToDeltas, makeCallIdLookup } from "./streamEvents.mjs";
|
|
3
|
-
import { n as describe, r as it, t as globalExpect } from "./
|
|
3
|
+
import { n as describe, r as it, t as globalExpect } from "./index.C4tKZ0yW-xEu55bU4.mjs";
|
|
4
4
|
import { Result, Schema } from "effect";
|
|
5
5
|
import * as Tool from "@effect-uai/core/Tool";
|
|
6
6
|
import { providerToolsOf } from "@effect-uai/core/Tool";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
//#region \0rolldown/runtime.js
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
|
+
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
3
4
|
var __exportAll = (all, no_symbols) => {
|
|
4
5
|
let target = {};
|
|
5
6
|
for (var name in all) __defProp(target, name, {
|
|
@@ -10,4 +11,4 @@ var __exportAll = (all, no_symbols) => {
|
|
|
10
11
|
return target;
|
|
11
12
|
};
|
|
12
13
|
//#endregion
|
|
13
|
-
export { __exportAll as t };
|
|
14
|
+
export { __exportAll as n, __commonJSMin as t };
|
package/dist/streamEvents.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as __exportAll } from "./rolldown-runtime-EAsCxrDo.mjs";
|
|
2
2
|
import { WireAnnotation, WireOutputItem, WireResponseCompleted, turnFromCompleted } from "./codec.mjs";
|
|
3
3
|
import { Match, Schema } from "effect";
|
|
4
4
|
import { TurnEvent } from "@effect-uai/core/Turn";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effect-uai/responses",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.0",
|
|
4
4
|
"description": "OpenAI Responses API provider for @effect-uai/core.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|
|
@@ -55,13 +55,13 @@
|
|
|
55
55
|
"access": "public"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"effect": "4.0.
|
|
58
|
+
"effect": "4.0.1",
|
|
59
59
|
"typescript": "^7.0.2",
|
|
60
|
-
"@effect-uai/core": "0.
|
|
60
|
+
"@effect-uai/core": "0.18.0"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
63
63
|
"@effect-uai/core": ">=0.2.0 <1",
|
|
64
|
-
"effect": ">=4.0.
|
|
64
|
+
"effect": ">=4.0.1 <5.0.0"
|
|
65
65
|
},
|
|
66
66
|
"scripts": {
|
|
67
67
|
"build": "tsdown",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Context, Effect, Layer, Match, Option, Redacted, Schema, Stream } from "effect"
|
|
2
|
-
import { HttpClient, HttpClientRequest } from "effect/
|
|
2
|
+
import { HttpClient, HttpClientRequest } from "effect/http"
|
|
3
3
|
import * as AiError from "@effect-uai/core/AiError"
|
|
4
4
|
import {
|
|
5
5
|
DeepResearch,
|
package/src/OpenAIEmbedding.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Context, Effect, Layer, Redacted, Schema } from "effect"
|
|
2
|
-
import { HttpClient, HttpClientRequest } from "effect/
|
|
2
|
+
import { HttpClient, HttpClientRequest } from "effect/http"
|
|
3
3
|
import * as AiError from "@effect-uai/core/AiError"
|
|
4
4
|
import * as Capabilities from "@effect-uai/core/Capabilities"
|
|
5
5
|
import type {
|
package/src/Responses.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Context, Effect, Layer, Match, Option, Redacted, Result, Schema, Stream } from "effect"
|
|
2
|
-
import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/
|
|
2
|
+
import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/http"
|
|
3
3
|
import * as AiError from "@effect-uai/core/AiError"
|
|
4
4
|
import * as Capabilities from "@effect-uai/core/Capabilities"
|
|
5
5
|
import * as StructuredFormat from "@effect-uai/core/StructuredFormat"
|
package/src/codec.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { Array as Arr,
|
|
1
|
+
import { Array as Arr, Match, Option, Result, Schema, pipe } from "effect"
|
|
2
|
+
import { Base64 } from "effect/encoding"
|
|
2
3
|
import type { ContentBlock, InputImage, HistoryItem } from "@effect-uai/core/Items"
|
|
3
4
|
import type { Turn } from "@effect-uai/core/Turn"
|
|
4
5
|
|
|
@@ -198,7 +199,7 @@ const passthrough = (item: HistoryItem): StoredItem | undefined =>
|
|
|
198
199
|
const imageSourceToUrl = Match.type<InputImage["source"]>().pipe(
|
|
199
200
|
Match.tag("url", (s) => s.url),
|
|
200
201
|
Match.tag("base64", (s) => `data:${s.mimeType};base64,${s.base64}`),
|
|
201
|
-
Match.tag("bytes", (s) => `data:${s.mimeType};base64,${
|
|
202
|
+
Match.tag("bytes", (s) => `data:${s.mimeType};base64,${Base64.encode(s.bytes)}`),
|
|
202
203
|
Match.exhaustive,
|
|
203
204
|
)
|
|
204
205
|
|