simple-ai-sdk 1.0.31 → 1.0.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createChatHandler.d.ts","sourceRoot":"","sources":["../../src/server/createChatHandler.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,aAAa,EAGb,iBAAiB,EAIlB,MAAM,YAAY,CAAC;AAMpB,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,aAAa,GAAG,iBAAiB,
|
|
1
|
+
{"version":3,"file":"createChatHandler.d.ts","sourceRoot":"","sources":["../../src/server/createChatHandler.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,aAAa,EAGb,iBAAiB,EAIlB,MAAM,YAAY,CAAC;AAMpB,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,aAAa,GAAG,iBAAiB,CA8b3E"}
|
|
@@ -174,10 +174,8 @@ export function createChatHandler(options) {
|
|
|
174
174
|
lastContentSendTime = 0;
|
|
175
175
|
lastContentSendLength = 0;
|
|
176
176
|
// geminiでは"none"を指定することでreasoning_effortを無効化できる
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
reasoningEffort = undefined;
|
|
180
|
-
}
|
|
177
|
+
const reasoningEffort = config.reasoningEffort ||
|
|
178
|
+
(config.provider === "gemini" ? "none" : undefined);
|
|
181
179
|
try {
|
|
182
180
|
// Establish stream for this provider
|
|
183
181
|
chatStream = config.openai.chat.completions.stream({
|