mirror of
https://github.com/tvytlx/ai-agent-deep-dive.git
synced 2026-04-20 12:15:11 +08:00
Add extracted source directory and README navigation
This commit is contained in:
19
extracted-source/node_modules/@anthropic-ai/sdk/resources/completions.mjs
generated
vendored
Normal file
19
extracted-source/node_modules/@anthropic-ai/sdk/resources/completions.mjs
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
||||
import { APIResource } from "../core/resource.mjs";
|
||||
import { buildHeaders } from "../internal/headers.mjs";
|
||||
export class Completions extends APIResource {
|
||||
create(params, options) {
|
||||
const { betas, ...body } = params;
|
||||
return this._client.post('/v1/complete', {
|
||||
body,
|
||||
timeout: this._client._options.timeout ?? 600000,
|
||||
...options,
|
||||
headers: buildHeaders([
|
||||
{ ...(betas?.toString() != null ? { 'anthropic-beta': betas?.toString() } : undefined) },
|
||||
options?.headers,
|
||||
]),
|
||||
stream: params.stream ?? false,
|
||||
});
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=completions.mjs.map
|
||||
Reference in New Issue
Block a user