Skip to content

Commit

Permalink
Revert "Add OpenAI and Anthropic tests & fix some types (#1006)" (#1165)
Browse files Browse the repository at this point in the history
  • Loading branch information
lgrammel authored Mar 16, 2024
1 parent 42209be commit 8688f98
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 174 deletions.
20 changes: 0 additions & 20 deletions packages/core/prompts/anthropic.test.ts

This file was deleted.

152 changes: 0 additions & 152 deletions packages/core/prompts/openai.test.ts

This file was deleted.

2 changes: 1 addition & 1 deletion packages/core/react/use-assistant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export type UseAssistantOptions = {
* An optional string that represents the ID of an existing thread.
* If not provided, a new thread will be created.
*/
threadId?: string;
threadId?: string | undefined;

/**
* An optional literal that sets the mode of credentials to be used on the request.
Expand Down
2 changes: 1 addition & 1 deletion packages/core/react/use-chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export type UseChatHelpers = {
/** Whether the API request is in progress */
isLoading: boolean;
/** Additional data added on the server via StreamData */
data?: JSONValue[];
data?: JSONValue[] | undefined;
};

type StreamingReactResponseAction = (payload: {
Expand Down

0 comments on commit 8688f98

Please sign in to comment.