Skip to content

Commit 3809692

Browse files
authored
Merge pull request #48 from cometapi-dev/agent/update-gpt-5-6-sol-examples
fix: update examples to gpt-5.6-sol
2 parents 9ac28e4 + cae4c97 commit 3809692

12 files changed

Lines changed: 42 additions & 27 deletions

‎.github/workflows/live-smoke.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
env:
4242
COMETAPI_KEY: ${{ secrets.COMETAPI_KEY }}
4343
COMETAPI_LIVE_SMOKE: "1"
44-
COMETAPI_SMOKE_MODEL: ${{ vars.COMETAPI_SMOKE_MODEL || 'gpt-5.4' }}
44+
COMETAPI_SMOKE_MODEL: ${{ vars.COMETAPI_SMOKE_MODEL || 'gpt-5.6-sol' }}
4545
COMETAPI_LIVE_REQUEST_LIMIT: "3"
4646
COMETAPI_LIVE_MAX_OUTPUT_TOKENS: "16"
4747
COMETAPI_LIVE_REQUEST_TIMEOUT_MS: "60000"

‎.github/workflows/publish.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -705,7 +705,7 @@ jobs:
705705
env:
706706
COMETAPI_KEY: ${{ secrets.COMETAPI_KEY }}
707707
COMETAPI_LIVE_SMOKE: "1"
708-
COMETAPI_SMOKE_MODEL: ${{ vars.COMETAPI_SMOKE_MODEL || 'gpt-5.4' }}
708+
COMETAPI_SMOKE_MODEL: ${{ vars.COMETAPI_SMOKE_MODEL || 'gpt-5.6-sol' }}
709709
COMETAPI_LIVE_REQUEST_LIMIT: "3"
710710
COMETAPI_LIVE_MAX_OUTPUT_TOKENS: "16"
711711
COMETAPI_LIVE_REQUEST_TIMEOUT_MS: "60000"

‎CONTRIBUTING.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ and CommonJS fixtures.
7272

7373
All repository documentation is written in English. Public behavior changes
7474
must update the README, compatibility matrix, examples, roadmap when milestone
75-
scope changes, and changelog. Examples use current model IDs such as `gpt-5.4`
76-
and must not contain real keys.
75+
scope changes, and changelog. Examples use current model IDs such as
76+
`gpt-5.6-sol` and must not contain real keys.
7777

7878
Keep this repository self-contained. Do not add commands or links that require
7979
files outside the repository root, a sibling SDK, or a private checkout.

‎README.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,14 +103,14 @@ import { CometAPI } from "cometapi";
103103
const client = new CometAPI();
104104

105105
const response = await client.responses.create({
106-
model: "gpt-5.4",
106+
model: "gpt-5.6-sol",
107107
input: "Explain why the sky is blue in one sentence.",
108108
});
109109

110110
console.log(response.output_text);
111111

112112
const stream = await client.chat.completions.create({
113-
model: "gpt-5.4",
113+
model: "gpt-5.6-sol",
114114
messages: [{ role: "user", content: "Write one sentence about comets." }],
115115
stream: true,
116116
});
@@ -130,7 +130,7 @@ const client = new CometAPI();
130130

131131
async function main() {
132132
const completion = await client.chat.completions.create({
133-
model: "gpt-5.4",
133+
model: "gpt-5.6-sol",
134134
messages: [{ role: "user", content: "Reply with one short greeting." }],
135135
});
136136
console.log(completion.choices[0]?.message?.content ?? "");
@@ -168,7 +168,7 @@ const client = new CometAPI({
168168

169169
const response = await client.chat.completions.create(
170170
{
171-
model: "gpt-5.4",
171+
model: "gpt-5.6-sol",
172172
messages: [{ role: "user", content: "Reply with OK." }],
173173
},
174174
{ timeout: 5_000 },

‎examples/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Examples
22

33
These examples exercise only the supported 0.1 surface and use the current
4-
default example model, `gpt-5.4`.
4+
default example model, `gpt-5.6-sol`.
55

66
- `esm.mjs` verifies ESM import, Responses, and streaming Chat Completions.
77
- `commonjs.cjs` verifies CommonJS loading, non-streaming Chat Completions, and

‎examples/commonjs.cjs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const client = new CometAPI();
44

55
async function main() {
66
const completion = await client.chat.completions.create({
7-
model: "gpt-5.4",
7+
model: "gpt-5.6-sol",
88
messages: [{ role: "user", content: "Reply with one short greeting." }],
99
});
1010
console.log(completion.choices[0]?.message?.content ?? "");

‎examples/esm.mjs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ import { CometAPI } from "cometapi";
33
const client = new CometAPI();
44

55
const response = await client.responses.create({
6-
model: "gpt-5.4",
6+
model: "gpt-5.6-sol",
77
input: "Explain why the sky is blue in one sentence.",
88
});
99

1010
console.log(response.output_text);
1111

1212
const stream = await client.chat.completions.create({
13-
model: "gpt-5.4",
13+
model: "gpt-5.6-sol",
1414
messages: [{ role: "user", content: "Write one sentence about comets." }],
1515
stream: true,
1616
});

‎scripts/fixtures/mock-example-fetch.cjs‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const expectations =
3737
method: "POST",
3838
path: "/v1/responses",
3939
body: {
40-
model: "gpt-5.4",
40+
model: "gpt-5.6-sol",
4141
input: "Explain why the sky is blue in one sentence.",
4242
},
4343
response: () =>
@@ -47,7 +47,7 @@ const expectations =
4747
object: "response",
4848
created_at: 1,
4949
status: "completed",
50-
model: "gpt-5.4",
50+
model: "gpt-5.6-sol",
5151
output: [
5252
{
5353
id: "msg_example",
@@ -75,7 +75,7 @@ const expectations =
7575
method: "POST",
7676
path: "/v1/chat/completions",
7777
body: {
78-
model: "gpt-5.4",
78+
model: "gpt-5.6-sol",
7979
messages: [
8080
{ role: "user", content: "Write one sentence about comets." },
8181
],
@@ -84,9 +84,9 @@ const expectations =
8484
response: () =>
8585
new Response(
8686
[
87-
'data: {"id":"chat_example","object":"chat.completion.chunk","created":1,"model":"gpt-5.4","choices":[{"index":0,"delta":{"content":"Comets "},"finish_reason":null}]}',
87+
'data: {"id":"chat_example","object":"chat.completion.chunk","created":1,"model":"gpt-5.6-sol","choices":[{"index":0,"delta":{"content":"Comets "},"finish_reason":null}]}',
8888
"",
89-
'data: {"id":"chat_example","object":"chat.completion.chunk","created":1,"model":"gpt-5.4","choices":[{"index":0,"delta":{"content":"shine."},"finish_reason":null}]}',
89+
'data: {"id":"chat_example","object":"chat.completion.chunk","created":1,"model":"gpt-5.6-sol","choices":[{"index":0,"delta":{"content":"shine."},"finish_reason":null}]}',
9090
"",
9191
"data: [DONE]",
9292
"",
@@ -100,7 +100,7 @@ const expectations =
100100
method: "POST",
101101
path: "/v1/chat/completions",
102102
body: {
103-
model: "gpt-5.4",
103+
model: "gpt-5.6-sol",
104104
messages: [
105105
{ role: "user", content: "Reply with one short greeting." },
106106
],
@@ -111,7 +111,7 @@ const expectations =
111111
id: "chat_example",
112112
object: "chat.completion",
113113
created: 1,
114-
model: "gpt-5.4",
114+
model: "gpt-5.6-sol",
115115
choices: [
116116
{
117117
index: 0,
@@ -137,7 +137,7 @@ const expectations =
137137
object: "list",
138138
data: [
139139
{
140-
id: "gpt-5.4",
140+
id: "gpt-5.6-sol",
141141
object: "model",
142142
created: 1,
143143
owned_by: "cometapi",

‎scripts/live-smoke.mjs‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const REQUEST_TIMEOUT_MS = readBudget(
2626
60_000,
2727
);
2828
const concurrency = readBudget("COMETAPI_LIVE_CONCURRENCY", 1);
29-
const model = process.env.COMETAPI_SMOKE_MODEL ?? "gpt-5.4";
29+
const model = process.env.COMETAPI_SMOKE_MODEL ?? "gpt-5.6-sol";
3030

3131
if (
3232
process.env.COMETAPI_BASE_URL !== undefined &&
@@ -89,6 +89,7 @@ const chat = await client.chat.completions.create({
8989
max_completion_tokens: OUTPUT_TOKEN_LIMIT,
9090
messages: [{ content: "Reply with OK.", role: "user" }],
9191
model,
92+
reasoning_effort: "none",
9293
});
9394
assert.ok(chat.id, "Chat Completions returned no response ID");
9495
const chatChoice = chat.choices[0];
@@ -107,6 +108,7 @@ const stream = await client.responses.create({
107108
input: "Reply with OK.",
108109
max_output_tokens: OUTPUT_TOKEN_LIMIT,
109110
model,
111+
reasoning: { effort: "none" },
110112
stream: true,
111113
});
112114
let eventCount = 0;

‎scripts/release-workflow-validation.mjs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const RELEASE_WORKFLOW_STEP = "Run Release Please";
1818
const PUBLISH_OPERATION = "release";
1919
const NPM_TAG_POLICY_ID = 55718965;
2020
const PUBLISH_WORKFLOW_CONTRACT_SHA256 =
21-
"71e517276bc595ca7cb378997f5d9a007d0c2b8da98019c5dc870f74e0621745";
21+
"081af3a47c0bef1ff38a77cf038ab3c66b8c14ea2b524c42bc4f2c21e41f9f79";
2222
const PUBLISH_HANDOFF_IF =
2323
"vars.RELEASE_PLEASE_ENABLED == 'true' && github.event_name == 'workflow_run' && github.run_attempt == 1 && github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.event == 'push' && github.event.workflow_run.head_branch == 'main'";
2424
const PUBLISH_RESULT_IF = "steps.result.outputs.has-result == 'true'";
@@ -569,7 +569,7 @@ fi
569569
JSON.stringify({
570570
COMETAPI_KEY: "${{ secrets.COMETAPI_KEY }}",
571571
COMETAPI_LIVE_SMOKE: "1",
572-
COMETAPI_SMOKE_MODEL: "${{ vars.COMETAPI_SMOKE_MODEL || 'gpt-5.4' }}",
572+
COMETAPI_SMOKE_MODEL: "${{ vars.COMETAPI_SMOKE_MODEL || 'gpt-5.6-sol' }}",
573573
COMETAPI_LIVE_REQUEST_LIMIT: "3",
574574
COMETAPI_LIVE_MAX_OUTPUT_TOKENS: "16",
575575
COMETAPI_LIVE_REQUEST_TIMEOUT_MS: "60000",

0 commit comments

Comments
 (0)