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,CA+b3E"}
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
- let reasoningEffort = config.reasoningEffort ?? "none";
178
- if (config.provider === "openai" && reasoningEffort === "none") {
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({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simple-ai-sdk",
3
- "version": "1.0.31",
3
+ "version": "1.0.32",
4
4
  "private": false,
5
5
  "description": "Simple AI SDK for Hono / React19+ / OpenAI",
6
6
  "type": "module",