Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

together-ai

Package Overview
Dependencies
Maintainers
0
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

together-ai - npm Package Compare versions

Comparing version 0.6.0 to 0.7.0

resources/top-level.d.ts

11

CHANGELOG.md
# Changelog
## 0.7.0 (2024-10-23)
Full Changelog: [v0.6.0...v0.7.0](https://github.com/togethercomputer/together-typescript/compare/v0.6.0...v0.7.0)
### Features
* **api:** api update ([#70](https://github.com/togethercomputer/together-typescript/issues/70)) ([6157f8c](https://github.com/togethercomputer/together-typescript/commit/6157f8c9ecf86a2574dc146a4ee0877857d58080))
* **api:** api update ([#72](https://github.com/togethercomputer/together-typescript/issues/72)) ([b400821](https://github.com/togethercomputer/together-typescript/commit/b400821dc58a2436ba4bdc27517aa3f3670a217e))
* **api:** api update ([#73](https://github.com/togethercomputer/together-typescript/issues/73)) ([e5d1b6b](https://github.com/togethercomputer/together-typescript/commit/e5d1b6bae33530b252ecedab7d1f4097447fcb30))
* **api:** api update ([#74](https://github.com/togethercomputer/together-typescript/issues/74)) ([155b212](https://github.com/togethercomputer/together-typescript/commit/155b2120e8c99bb02b5dbeb514f4e9502fa7840d))
## 0.6.0 (2024-10-22)

@@ -4,0 +15,0 @@

@@ -6,2 +6,3 @@ import * as Errors from "./error.js";

import * as API from "./resources/index.js";
import * as TopLevelAPI from "./resources/top-level.js";
export interface ClientOptions {

@@ -88,2 +89,6 @@ /**

models: API.Models;
/**
* Query a reranker model
*/
rerank(body: TopLevelAPI.RerankParams, options?: Core.RequestOptions): Core.APIPromise<TopLevelAPI.RerankResponse>;
protected defaultQuery(): Core.DefaultQuery | undefined;

@@ -115,2 +120,4 @@ protected defaultHeaders(opts: Core.FinalRequestOptions): Core.Headers;

export import RequestOptions = Core.RequestOptions;
export import RerankResponse = API.RerankResponse;
export import RerankParams = API.RerankParams;
export import Chat = API.Chat;

@@ -117,0 +124,0 @@ export import Completions = API.Completions;

@@ -75,2 +75,8 @@ "use strict";

}
/**
* Query a reranker model
*/
rerank(body, options) {
return this.post('/rerank', { body, ...options });
}
defaultQuery() {

@@ -77,0 +83,0 @@ return this._options.defaultQuery;

2

package.json
{
"name": "together-ai",
"version": "0.6.0",
"version": "0.7.0",
"description": "The official TypeScript library for the Together API",

@@ -5,0 +5,0 @@ "author": "Together <dev-feedback@TogetherAI.com>",

@@ -161,3 +161,3 @@ import { APIResource } from "../../resource.js";

*/
model: string;
model: 'Qwen/Qwen2.5-72B-Instruct-Turbo' | 'Qwen/Qwen2.5-7B-Instruct-Turbo' | 'meta-llama/Meta-Llama-3.1-405B-Instruct-Turbo' | 'meta-llama/Meta-Llama-3.1-70B-Instruct-Turbo' | 'meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo' | (string & {});
/**

@@ -164,0 +164,0 @@ * If true, the response will contain the prompt. Can be used with `logprobs` to

@@ -157,4 +157,4 @@ import { APIResource } from "../resource.js";

/**
* The percent of steps at the start of training to linearly increase the
* learning-rate.
* The percent of steps at the start of training to linearly increase the learning
* rate.
*/

@@ -161,0 +161,0 @@ warmup_ratio?: number;

@@ -8,2 +8,3 @@ export { Chat } from "./chat/chat.js";

export { ModelListResponse, Models } from "./models.js";
export { RerankResponse, RerankParams } from "./top-level.js";
//# sourceMappingURL=index.d.ts.map

@@ -8,2 +8,3 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

import * as API from './resources/index';
import * as TopLevelAPI from './resources/top-level';

@@ -131,2 +132,12 @@ export interface ClientOptions {

/**
* Query a reranker model
*/
rerank(
body: TopLevelAPI.RerankParams,
options?: Core.RequestOptions,
): Core.APIPromise<TopLevelAPI.RerankResponse> {
return this.post('/rerank', { body, ...options });
}
protected override defaultQuery(): Core.DefaultQuery | undefined {

@@ -190,2 +201,5 @@ return this._options.defaultQuery;

export import RerankResponse = API.RerankResponse;
export import RerankParams = API.RerankParams;
export import Chat = API.Chat;

@@ -192,0 +206,0 @@

@@ -254,3 +254,9 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

*/
model: string;
model:
| 'Qwen/Qwen2.5-72B-Instruct-Turbo'
| 'Qwen/Qwen2.5-7B-Instruct-Turbo'
| 'meta-llama/Meta-Llama-3.1-405B-Instruct-Turbo'
| 'meta-llama/Meta-Llama-3.1-70B-Instruct-Turbo'
| 'meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo'
| (string & {});

@@ -257,0 +263,0 @@ /**

@@ -315,4 +315,4 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

/**
* The percent of steps at the start of training to linearly increase the
* learning-rate.
* The percent of steps at the start of training to linearly increase the learning
* rate.
*/

@@ -319,0 +319,0 @@ warmup_ratio?: number;

@@ -27,1 +27,2 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

export { ModelListResponse, Models } from './models';
export { RerankResponse, RerankParams } from './top-level';

@@ -1,1 +0,1 @@

export const VERSION = '0.6.0'; // x-release-please-version
export const VERSION = '0.7.0'; // x-release-please-version

@@ -1,2 +0,2 @@

export declare const VERSION = "0.6.0";
export declare const VERSION = "0.7.0";
//# sourceMappingURL=version.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.VERSION = void 0;
exports.VERSION = '0.6.0'; // x-release-please-version
exports.VERSION = '0.7.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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc