Skip to content

Commit

Permalink
chore(internal): update resource client type (#263)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot authored and RobertCraigie committed Jan 23, 2024
1 parent 102bc8c commit 9876f1e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/resource.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// File generated from our OpenAPI spec by Stainless.

import type { Anthropic } from './index';
import * as Core from '@anthropic-ai/sdk/core';

export class APIResource {
protected _client: Anthropic;
protected _client: Core.APIClient;

constructor(client: Anthropic) {
constructor(client: Core.APIClient) {
this._client = client;
}
}
2 changes: 1 addition & 1 deletion src/resources/beta/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export class Messages extends APIResource {
* Create a Message stream
*/
stream(body: MessageStreamParams, options?: Core.RequestOptions): MessageStream {
return MessageStream.createMessage(this._client.beta.messages, body, options);
return MessageStream.createMessage(this, body, options);
}
}

Expand Down

0 comments on commit 9876f1e

Please sign in to comment.