Comparing version 0.14.0 to 0.15.0
# Changelog | ||
## 0.15.0 (2025-02-05) | ||
Full Changelog: [v0.14.0...v0.15.0](https://github.com/groq/groq-typescript/compare/v0.14.0...v0.15.0) | ||
### Features | ||
* **api:** Add batch API ([#177](https://github.com/groq/groq-typescript/issues/177)) ([0b62a9f](https://github.com/groq/groq-typescript/commit/0b62a9f0e3b53285cf4ca3c8884091626821a406)) | ||
## 0.14.0 (2025-02-03) | ||
@@ -4,0 +12,0 @@ |
@@ -6,4 +6,6 @@ import { type Agent } from "./_shims/index.js"; | ||
import * as API from "./resources/index.js"; | ||
import { BatchCreateParams, BatchCreateResponse, BatchListResponse, BatchRetrieveResponse, Batches } from "./resources/batches.js"; | ||
import { CompletionUsage, Completions } from "./resources/completions.js"; | ||
import { CreateEmbeddingResponse, Embedding, EmbeddingCreateParams, Embeddings } from "./resources/embeddings.js"; | ||
import { FileContentResponse, FileCreateParams, FileCreateResponse, FileDeleteResponse, FileInfoResponse, FileListResponse, Files } from "./resources/files.js"; | ||
import { Model, ModelDeleted, ModelListResponse, Models } from "./resources/models.js"; | ||
@@ -97,2 +99,4 @@ import { Audio } from "./resources/audio/audio.js"; | ||
models: API.Models; | ||
batches: API.Batches; | ||
files: API.Files; | ||
protected defaultQuery(): Core.DefaultQuery | undefined; | ||
@@ -126,2 +130,4 @@ protected defaultHeaders(opts: Core.FinalRequestOptions): Core.Headers; | ||
export { Models as Models, type Model as Model, type ModelDeleted as ModelDeleted, type ModelListResponse as ModelListResponse, }; | ||
export { Batches as Batches, type BatchCreateResponse as BatchCreateResponse, type BatchRetrieveResponse as BatchRetrieveResponse, type BatchListResponse as BatchListResponse, type BatchCreateParams as BatchCreateParams, }; | ||
export { Files as Files, type FileCreateResponse as FileCreateResponse, type FileListResponse as FileListResponse, type FileDeleteResponse as FileDeleteResponse, type FileContentResponse as FileContentResponse, type FileInfoResponse as FileInfoResponse, type FileCreateParams as FileCreateParams, }; | ||
export type ErrorObject = API.ErrorObject; | ||
@@ -128,0 +134,0 @@ export type FunctionDefinition = API.FunctionDefinition; |
@@ -33,4 +33,6 @@ "use strict"; | ||
const API = __importStar(require("./resources/index.js")); | ||
const batches_1 = require("./resources/batches.js"); | ||
const completions_1 = require("./resources/completions.js"); | ||
const embeddings_1 = require("./resources/embeddings.js"); | ||
const files_1 = require("./resources/files.js"); | ||
const models_1 = require("./resources/models.js"); | ||
@@ -80,2 +82,4 @@ const audio_1 = require("./resources/audio/audio.js"); | ||
this.models = new API.Models(this); | ||
this.batches = new API.Batches(this); | ||
this.files = new API.Files(this); | ||
this._options = options; | ||
@@ -121,2 +125,4 @@ this.apiKey = apiKey; | ||
Groq.Models = models_1.Models; | ||
Groq.Batches = batches_1.Batches; | ||
Groq.Files = files_1.Files; | ||
var uploads_1 = require("./uploads.js"); | ||
@@ -123,0 +129,0 @@ Object.defineProperty(exports, "toFile", { enumerable: true, get: function () { return uploads_1.toFile; } }); |
{ | ||
"name": "groq-sdk", | ||
"version": "0.14.0", | ||
"version": "0.15.0", | ||
"description": "The official TypeScript library for the Groq API", | ||
@@ -5,0 +5,0 @@ "author": "Groq <support@groq.com>", |
export * from "./shared.js"; | ||
export { Audio } from "./audio/audio.js"; | ||
export { Batches, type BatchCreateResponse, type BatchRetrieveResponse, type BatchListResponse, type BatchCreateParams, } from "./batches.js"; | ||
export { Chat } from "./chat/chat.js"; | ||
export { Completions, type CompletionUsage } from "./completions.js"; | ||
export { Embeddings, type CreateEmbeddingResponse, type Embedding, type EmbeddingCreateParams, } from "./embeddings.js"; | ||
export { Files, type FileCreateResponse, type FileListResponse, type FileDeleteResponse, type FileContentResponse, type FileInfoResponse, type FileCreateParams, } from "./files.js"; | ||
export { Models, type Model, type ModelDeleted, type ModelListResponse } from "./models.js"; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -18,6 +18,8 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Models = exports.Embeddings = exports.Completions = exports.Chat = exports.Audio = void 0; | ||
exports.Models = exports.Files = exports.Embeddings = exports.Completions = exports.Chat = exports.Batches = exports.Audio = void 0; | ||
__exportStar(require("./shared.js"), exports); | ||
var audio_1 = require("./audio/audio.js"); | ||
Object.defineProperty(exports, "Audio", { enumerable: true, get: function () { return audio_1.Audio; } }); | ||
var batches_1 = require("./batches.js"); | ||
Object.defineProperty(exports, "Batches", { enumerable: true, get: function () { return batches_1.Batches; } }); | ||
var chat_1 = require("./chat/chat.js"); | ||
@@ -29,4 +31,6 @@ Object.defineProperty(exports, "Chat", { enumerable: true, get: function () { return chat_1.Chat; } }); | ||
Object.defineProperty(exports, "Embeddings", { enumerable: true, get: function () { return embeddings_1.Embeddings; } }); | ||
var files_1 = require("./files.js"); | ||
Object.defineProperty(exports, "Files", { enumerable: true, get: function () { return files_1.Files; } }); | ||
var models_1 = require("./models.js"); | ||
Object.defineProperty(exports, "Models", { enumerable: true, get: function () { return models_1.Models; } }); | ||
//# sourceMappingURL=index.js.map |
@@ -8,2 +8,9 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
import * as API from './resources/index'; | ||
import { | ||
BatchCreateParams, | ||
BatchCreateResponse, | ||
BatchListResponse, | ||
BatchRetrieveResponse, | ||
Batches, | ||
} from './resources/batches'; | ||
import { CompletionUsage, Completions } from './resources/completions'; | ||
@@ -16,2 +23,11 @@ import { | ||
} from './resources/embeddings'; | ||
import { | ||
FileContentResponse, | ||
FileCreateParams, | ||
FileCreateResponse, | ||
FileDeleteResponse, | ||
FileInfoResponse, | ||
FileListResponse, | ||
Files, | ||
} from './resources/files'; | ||
import { Model, ModelDeleted, ModelListResponse, Models } from './resources/models'; | ||
@@ -152,2 +168,4 @@ import { Audio } from './resources/audio/audio'; | ||
models: API.Models = new API.Models(this); | ||
batches: API.Batches = new API.Batches(this); | ||
files: API.Files = new API.Files(this); | ||
@@ -195,2 +213,4 @@ protected override defaultQuery(): Core.DefaultQuery | undefined { | ||
Groq.Models = Models; | ||
Groq.Batches = Batches; | ||
Groq.Files = Files; | ||
export declare namespace Groq { | ||
@@ -219,2 +239,20 @@ export type RequestOptions = Core.RequestOptions; | ||
export { | ||
Batches as Batches, | ||
type BatchCreateResponse as BatchCreateResponse, | ||
type BatchRetrieveResponse as BatchRetrieveResponse, | ||
type BatchListResponse as BatchListResponse, | ||
type BatchCreateParams as BatchCreateParams, | ||
}; | ||
export { | ||
Files as Files, | ||
type FileCreateResponse as FileCreateResponse, | ||
type FileListResponse as FileListResponse, | ||
type FileDeleteResponse as FileDeleteResponse, | ||
type FileContentResponse as FileContentResponse, | ||
type FileInfoResponse as FileInfoResponse, | ||
type FileCreateParams as FileCreateParams, | ||
}; | ||
export type ErrorObject = API.ErrorObject; | ||
@@ -221,0 +259,0 @@ export type FunctionDefinition = API.FunctionDefinition; |
@@ -5,2 +5,9 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
export { Audio } from './audio/audio'; | ||
export { | ||
Batches, | ||
type BatchCreateResponse, | ||
type BatchRetrieveResponse, | ||
type BatchListResponse, | ||
type BatchCreateParams, | ||
} from './batches'; | ||
export { Chat } from './chat/chat'; | ||
@@ -14,2 +21,11 @@ export { Completions, type CompletionUsage } from './completions'; | ||
} from './embeddings'; | ||
export { | ||
Files, | ||
type FileCreateResponse, | ||
type FileListResponse, | ||
type FileDeleteResponse, | ||
type FileContentResponse, | ||
type FileInfoResponse, | ||
type FileCreateParams, | ||
} from './files'; | ||
export { Models, type Model, type ModelDeleted, type ModelListResponse } from './models'; |
@@ -1,1 +0,1 @@ | ||
export const VERSION = '0.14.0'; // x-release-please-version | ||
export const VERSION = '0.15.0'; // x-release-please-version |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "0.14.0"; | ||
export declare const VERSION = "0.15.0"; | ||
//# sourceMappingURL=version.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.VERSION = void 0; | ||
exports.VERSION = '0.14.0'; // x-release-please-version | ||
exports.VERSION = '0.15.0'; // x-release-please-version | ||
//# sourceMappingURL=version.js.map |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
680174
263
11748