Skip to content

Commit

Permalink
release: 0.15.0 (#178)
Browse files Browse the repository at this point in the history
Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
  • Loading branch information
stainless-app[bot] authored Feb 5, 2025
1 parent ff834b4 commit 070ba6e
Show file tree
Hide file tree
Showing 12 changed files with 1,020 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.14.0"
".": "0.15.0"
}
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 7
configured_endpoints: 15
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/groqcloud%2Fgroqcloud-d1588e103a6ae0234752b8e54a746fb1e4c93a0ee51ede294017bcd4f0ee4ac0.yml
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# 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)

Full Changelog: [v0.13.0...v0.14.0](https://github.com/groq/groq-typescript/compare/v0.13.0...v0.14.0)
Expand Down
32 changes: 32 additions & 0 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,35 @@ Methods:
- <code title="get /openai/v1/models/{model}">client.models.<a href="./src/resources/models.ts">retrieve</a>(model) -> Model</code>
- <code title="get /openai/v1/models">client.models.<a href="./src/resources/models.ts">list</a>() -> ModelListResponse</code>
- <code title="delete /openai/v1/models/{model}">client.models.<a href="./src/resources/models.ts">delete</a>(model) -> ModelDeleted</code>

# Batches

Types:

- <code><a href="./src/resources/batches.ts">BatchCreateResponse</a></code>
- <code><a href="./src/resources/batches.ts">BatchRetrieveResponse</a></code>
- <code><a href="./src/resources/batches.ts">BatchListResponse</a></code>

Methods:

- <code title="post /openai/v1/batches">client.batches.<a href="./src/resources/batches.ts">create</a>({ ...params }) -> BatchCreateResponse</code>
- <code title="get /openai/v1/batches/{batch_id}">client.batches.<a href="./src/resources/batches.ts">retrieve</a>(batchId) -> BatchRetrieveResponse</code>
- <code title="get /openai/v1/batches">client.batches.<a href="./src/resources/batches.ts">list</a>() -> BatchListResponse</code>

# Files

Types:

- <code><a href="./src/resources/files.ts">FileCreateResponse</a></code>
- <code><a href="./src/resources/files.ts">FileListResponse</a></code>
- <code><a href="./src/resources/files.ts">FileDeleteResponse</a></code>
- <code><a href="./src/resources/files.ts">FileContentResponse</a></code>
- <code><a href="./src/resources/files.ts">FileInfoResponse</a></code>

Methods:

- <code title="post /openai/v1/files">client.files.<a href="./src/resources/files.ts">create</a>({ ...params }) -> FileCreateResponse</code>
- <code title="get /openai/v1/files">client.files.<a href="./src/resources/files.ts">list</a>() -> FileListResponse</code>
- <code title="delete /openai/v1/files/{file_id}">client.files.<a href="./src/resources/files.ts">delete</a>(fileId) -> FileDeleteResponse</code>
- <code title="get /openai/v1/files/{file_id}/content">client.files.<a href="./src/resources/files.ts">content</a>(fileId) -> string</code>
- <code title="get /openai/v1/files/{file_id}">client.files.<a href="./src/resources/files.ts">info</a>(fileId) -> FileInfoResponse</code>
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "groq-sdk",
"version": "0.14.0",
"version": "0.15.0",
"description": "The official TypeScript library for the Groq API",
"author": "Groq <[email protected]>",
"types": "dist/index.d.ts",
Expand Down
38 changes: 38 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,29 @@ import * as Core from './core';
import * as Errors from './error';
import * as Uploads from './uploads';
import * as API from './resources/index';
import {
BatchCreateParams,
BatchCreateResponse,
BatchListResponse,
BatchRetrieveResponse,
Batches,
} from './resources/batches';
import { CompletionUsage, Completions } from './resources/completions';
import {
CreateEmbeddingResponse,
Embedding,
EmbeddingCreateParams,
Embeddings,
} from './resources/embeddings';
import {
FileContentResponse,
FileCreateParams,
FileCreateResponse,
FileDeleteResponse,
FileInfoResponse,
FileListResponse,
Files,
} from './resources/files';
import { Model, ModelDeleted, ModelListResponse, Models } from './resources/models';
import { Audio } from './resources/audio/audio';
import { Chat } from './resources/chat/chat';
Expand Down Expand Up @@ -147,6 +163,8 @@ export class Groq extends Core.APIClient {
embeddings: API.Embeddings = new API.Embeddings(this);
audio: API.Audio = new API.Audio(this);
models: API.Models = new API.Models(this);
batches: API.Batches = new API.Batches(this);
files: API.Files = new API.Files(this);

protected override defaultQuery(): Core.DefaultQuery | undefined {
return this._options.defaultQuery;
Expand Down Expand Up @@ -189,6 +207,8 @@ Groq.Chat = Chat;
Groq.Embeddings = Embeddings;
Groq.Audio = Audio;
Groq.Models = Models;
Groq.Batches = Batches;
Groq.Files = Files;
export declare namespace Groq {
export type RequestOptions = Core.RequestOptions;

Expand All @@ -212,6 +232,24 @@ export declare namespace Groq {
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;
export type FunctionDefinition = API.FunctionDefinition;
export type FunctionParameters = API.FunctionParameters;
Expand Down
Loading

0 comments on commit 070ba6e

Please sign in to comment.