Skip to content
This repository was archived by the owner on May 15, 2026. It is now read-only.

Commit ad4b6c2

Browse files
committed
fix: set default temperature to 0.7 for SambaNova provider
1 parent acce890 commit ad4b6c2

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/api/providers/__tests__/sambanova.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ describe("SambaNovaHandler", () => {
259259
expect(usageChunks[0].cacheWriteTokens).toBeUndefined()
260260
})
261261

262-
it("should pass correct temperature (0.5 default) to streamText", async () => {
262+
it("should pass correct temperature (0.7 default) to streamText", async () => {
263263
async function* mockFullStream() {
264264
yield { type: "text-delta", text: "Test" }
265265
}
@@ -282,7 +282,7 @@ describe("SambaNovaHandler", () => {
282282

283283
expect(mockStreamText).toHaveBeenCalledWith(
284284
expect.objectContaining({
285-
temperature: 0.5,
285+
temperature: 0.7,
286286
}),
287287
)
288288
})
@@ -369,7 +369,7 @@ describe("SambaNovaHandler", () => {
369369

370370
expect(mockGenerateText).toHaveBeenCalledWith(
371371
expect.objectContaining({
372-
temperature: 0.5,
372+
temperature: 0.7,
373373
}),
374374
)
375375
})

src/api/providers/sambanova.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import { DEFAULT_HEADERS } from "./constants"
2020
import { BaseProvider } from "./base-provider"
2121
import type { SingleCompletionHandler, ApiHandlerCreateMessageMetadata } from "../index"
2222

23-
const SAMBANOVA_DEFAULT_TEMPERATURE = 0.5
23+
const SAMBANOVA_DEFAULT_TEMPERATURE = 0.7
2424

2525
/**
2626
* SambaNova provider using the dedicated sambanova-ai-provider package.

0 commit comments

Comments
 (0)