thebird 1.2.33 → 1.2.34
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.
- package/CLAUDE.md +3 -0
- package/package.json +1 -1
package/CLAUDE.md
CHANGED
|
@@ -130,6 +130,9 @@ Run examples against real Gemini API to validate message translation.
|
|
|
130
130
|
- Some models have different tool naming conventions — check provider docs
|
|
131
131
|
- Streaming response parsing varies by provider — see lib/providers/ for details
|
|
132
132
|
- OAuth tokens expire — gembird uses browser session instead of capturing tokens
|
|
133
|
+
- Cannot bundle index.js directly for browser — it imports Node-only modules (oauth.js, config.js, cloud-generate.js) at top level. Create a separate browser entry that imports only lib/client.js, lib/errors.js, lib/convert.js. Use ESM wrapper (not CJS module.exports) to preserve named exports in bundle.
|
|
134
|
+
- Tool parameter types must be lowercase for Gemini API — `object`, `string`, `number` not `OBJECT`, `STRING`, `NUMBER`. Uppercase types fail schema validation.
|
|
135
|
+
- agentGenerate passes raw Anthropic-format messages to streamGemini internally, which calls convertMessages. Do NOT pre-convert in app.js — double-conversion breaks tool schemas.
|
|
133
136
|
|
|
134
137
|
## Files
|
|
135
138
|
|
package/package.json
CHANGED