@anthropic-ai/sdk 0.8.0 → 0.8.1
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/CHANGELOG.md +8 -0
- package/package.json +1 -1
- package/src/_shims/index.d.ts +1 -1
- package/src/_shims/index.mjs +1 -1
- package/src/index.ts +1 -1
- package/src/resources/completions.ts +5 -5
- package/src/streaming.ts +2 -2
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.8.1 (2023-10-25)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.8.0...v0.8.1](https://github.com/anthropics/anthropic-sdk-typescript/compare/v0.8.0...v0.8.1)
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
* typo in build script ([#197](https://github.com/anthropics/anthropic-sdk-typescript/issues/197)) ([212e990](https://github.com/anthropics/anthropic-sdk-typescript/commit/212e9903e9b72b3169f450d8ab11ebd384951dba))
|
|
10
|
+
|
|
3
11
|
## 0.8.0 (2023-10-24)
|
|
4
12
|
|
|
5
13
|
Full Changelog: [v0.7.0...v0.8.0](https://github.com/anthropics/anthropic-sdk-typescript/compare/v0.7.0...v0.8.0)
|
package/package.json
CHANGED
package/src/_shims/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Disclaimer: modules in _shims aren't intended to be imported by SDK users.
|
|
3
3
|
*/
|
|
4
4
|
import { manual } from './manual-types';
|
|
5
|
-
import * as auto from "
|
|
5
|
+
import * as auto from "./auto/types";
|
|
6
6
|
import { type RequestOptions } from '../core';
|
|
7
7
|
|
|
8
8
|
type SelectType<Manual, Auto> = unknown extends Manual ? Auto : Manual;
|
package/src/_shims/index.mjs
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
* Disclaimer: modules in _shims aren't intended to be imported by SDK users.
|
|
3
3
|
*/
|
|
4
4
|
import * as shims from './registry.mjs';
|
|
5
|
-
import * as auto from "
|
|
5
|
+
import * as auto from "./auto/runtime";
|
|
6
6
|
if (!shims.kind) shims.setShims(auto.getRuntime(), { auto: true });
|
|
7
7
|
export * from './registry.mjs';
|
package/src/index.ts
CHANGED
|
@@ -4,7 +4,7 @@ import * as Core from './core';
|
|
|
4
4
|
import * as Errors from './error';
|
|
5
5
|
import { type Agent } from './_shims/index';
|
|
6
6
|
import * as Uploads from './uploads';
|
|
7
|
-
import * as API from "./
|
|
7
|
+
import * as API from "./resources/index";
|
|
8
8
|
|
|
9
9
|
export interface ClientOptions {
|
|
10
10
|
/**
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless.
|
|
2
2
|
|
|
3
|
-
import * as Core from "../
|
|
4
|
-
import { APIPromise } from "../
|
|
5
|
-
import { APIResource } from "../
|
|
6
|
-
import * as CompletionsAPI from "
|
|
7
|
-
import { Stream } from "../
|
|
3
|
+
import * as Core from "../core";
|
|
4
|
+
import { APIPromise } from "../core";
|
|
5
|
+
import { APIResource } from "../resource";
|
|
6
|
+
import * as CompletionsAPI from "./completions";
|
|
7
|
+
import { Stream } from "../streaming";
|
|
8
8
|
|
|
9
9
|
export class Completions extends APIResource {
|
|
10
10
|
/**
|
package/src/streaming.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ReadableStream, type Response } from './_shims/index';
|
|
2
2
|
import { AnthropicError } from './error';
|
|
3
3
|
|
|
4
|
-
import { safeJSON, createResponseHeaders } from "./
|
|
5
|
-
import { APIError } from "./
|
|
4
|
+
import { safeJSON, createResponseHeaders } from "./core";
|
|
5
|
+
import { APIError } from "./error";
|
|
6
6
|
|
|
7
7
|
type Bytes = string | ArrayBuffer | Uint8Array | Buffer | null | undefined;
|
|
8
8
|
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.8.
|
|
1
|
+
export const VERSION = '0.8.1'; // x-release-please-version
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.8.
|
|
1
|
+
export declare const VERSION = "0.8.1";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.8.
|
|
1
|
+
export const VERSION = '0.8.1'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|