Skip to content

Commit aee7e39

Browse files
release: 0.4.0 (#30)
Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent e1cf70d commit aee7e39

File tree

10 files changed

+48
-11
lines changed

10 files changed

+48
-11
lines changed

.release-please-manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.3.0"
2+
".": "0.4.0"
33
}

.stats.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 46
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/contextual-ai%2Fsunrise-5298551c424bb999f258bdd6c311e96c80c70701ad59bbce19b46c788ee13bd4.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/contextual-ai%2Fsunrise-f43814080090927ee22816c5c7f517d8a7eb7f346329ada67915608e32124321.yml

CHANGELOG.md

+13
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# Changelog
22

3+
## 0.4.0 (2025-03-03)
4+
5+
Full Changelog: [v0.3.0...v0.4.0](https://github.com/ContextualAI/contextual-client-node/compare/v0.3.0...v0.4.0)
6+
7+
### Features
8+
9+
* **api:** update via SDK Studio ([#31](https://github.com/ContextualAI/contextual-client-node/issues/31)) ([4ba5a46](https://github.com/ContextualAI/contextual-client-node/commit/4ba5a465a8201253d49b85cc8befd22f8ac721de))
10+
11+
12+
### Documentation
13+
14+
* update URLs from stainlessapi.com to stainless.com ([#28](https://github.com/ContextualAI/contextual-client-node/issues/28)) ([ffbd533](https://github.com/ContextualAI/contextual-client-node/commit/ffbd5334f8d85c61dbce453e2fe86f0d4260621c))
15+
316
## 0.3.0 (2025-02-26)
417

518
Full Changelog: [v0.2.0...v0.3.0](https://github.com/ContextualAI/contextual-client-node/compare/v0.2.0...v0.3.0)

SECURITY.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
## Reporting Security Issues
44

5-
This SDK is generated by [Stainless Software Inc](http://stainlessapi.com). Stainless takes security seriously, and encourages you to report any security vulnerability promptly so that appropriate action can be taken.
5+
This SDK is generated by [Stainless Software Inc](http://stainless.com). Stainless takes security seriously, and encourages you to report any security vulnerability promptly so that appropriate action can be taken.
66

7-
To report a security issue, please contact the Stainless team at security@stainlessapi.com.
7+
To report a security issue, please contact the Stainless team at security@stainless.com.
88

99
## Responsible Disclosure
1010

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "contextual-client",
3-
"version": "0.3.0",
3+
"version": "0.4.0",
44
"description": "The official TypeScript library for the Contextual AI API",
55
"author": "Contextual AI <support@contextual.ai>",
66
"types": "dist/index.d.ts",

src/resources/agents/evaluate/jobs.ts

+5
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,11 @@ export namespace ListEvaluationJobsResponse {
141141
*/
142142
num_predictions?: number;
143143

144+
/**
145+
* Number of predictions that have been processed during the evaluation round
146+
*/
147+
num_processed_predictions?: number;
148+
144149
/**
145150
* Number of predictions that were successful during the evaluation round
146151
*/

src/resources/agents/query.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -322,8 +322,7 @@ export interface QueryCreateParams {
322322

323323
export namespace QueryCreateParams {
324324
/**
325-
* Message object for a message sent or received in a /query and /generate
326-
* conversation
325+
* Message object for a message sent or received in a conversation
327326
*/
328327
export interface Message {
329328
/**

src/resources/generate.ts

+20-3
Original file line numberDiff line numberDiff line change
@@ -53,17 +53,34 @@ export interface GenerateCreateParams {
5353
*/
5454
avoid_commentary?: boolean;
5555

56+
/**
57+
* The maximum number of tokens that the model can generate in the response.
58+
*/
59+
max_new_tokens?: number;
60+
5661
/**
5762
* Instructions that the model follows when generating responses. Note that we do
5863
* not guarantee that the model follows these instructions exactly.
5964
*/
6065
system_prompt?: string;
66+
67+
/**
68+
* The sampling temperature, which affects the randomness in the response. Note
69+
* that higher temperature values can reduce groundedness
70+
*/
71+
temperature?: number;
72+
73+
/**
74+
* A parameter for nucleus sampling, an alternative to temperature which also
75+
* affects the randomness of the response. Note that higher top_p values can reduce
76+
* groundedness
77+
*/
78+
top_p?: number;
6179
}
6280

6381
export namespace GenerateCreateParams {
6482
/**
65-
* Message object for a message sent or received in a /query and /generate
66-
* conversation
83+
* Message object for a message received in the /generate request
6784
*/
6885
export interface Message {
6986
/**
@@ -74,7 +91,7 @@ export namespace GenerateCreateParams {
7491
/**
7592
* Role of the sender
7693
*/
77-
role: 'user' | 'system' | 'assistant' | 'knowledge';
94+
role: 'user' | 'assistant';
7895
}
7996
}
8097

src/version.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const VERSION = '0.3.0'; // x-release-please-version
1+
export const VERSION = '0.4.0'; // x-release-please-version

tests/api-resources/generate.test.ts

+3
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ describe('resource generate', () => {
3030
messages: [{ content: 'content', role: 'user' }],
3131
model: 'model',
3232
avoid_commentary: true,
33+
max_new_tokens: 1,
3334
system_prompt: 'system_prompt',
35+
temperature: 0,
36+
top_p: 1,
3437
});
3538
});
3639
});

0 commit comments

Comments
 (0)