Skip to content

Commit

Permalink
fix: internal error typing
Browse files Browse the repository at this point in the history
  • Loading branch information
juliuslipp committed Jun 16, 2024
1 parent 9568174 commit 8ac33f5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mixedbread-ai/sdk",
"version": "2.2.1",
"version": "2.2.2",
"license": "Apache-2.0",
"description": "SDK for mixedbread.ai",
"author": "mixedrbread.ai",
Expand Down
2 changes: 0 additions & 2 deletions src/api/client/requests/EmbeddingsRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,5 @@ export interface EmbeddingsRequest {
/** The truncation strategy to use for the input */
truncationStrategy?: MixedbreadAI.TruncationStrategy;
dimensions?: number;
instruction?: string;
texts?: string[];
prompt?: string;
}
2 changes: 1 addition & 1 deletion src/api/types/InternalError.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import * as MixedbreadAI from "..";

export interface InternalError {
type?: "server_error";
type?: string;
url?: string;
message?: string;
details?: MixedbreadAI.MxbaiApiErrorDetails;
Expand Down
4 changes: 2 additions & 2 deletions src/serialization/types/InternalError.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ import * as core from "../../core";

export const InternalError: core.serialization.ObjectSchema<serializers.InternalError.Raw, MixedbreadAI.InternalError> =
core.serialization.object({
type: core.serialization.stringLiteral("server_error").optional(),
type: core.serialization.string().optional(),
url: core.serialization.string().optional(),
message: core.serialization.string().optional(),
details: core.serialization.lazy(async () => (await import("..")).MxbaiApiErrorDetails).optional(),
});

export declare namespace InternalError {
interface Raw {
type?: "server_error" | null;
type?: string | null;
url?: string | null;
message?: string | null;
details?: serializers.MxbaiApiErrorDetails.Raw | null;
Expand Down

0 comments on commit 8ac33f5

Please sign in to comment.