needware-cli 1.6.15 → 1.7.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "needware-cli",
3
- "version": "1.6.15",
3
+ "version": "1.7.1",
4
4
  "description": "一个功能强大的 Node.js 命令行工具",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -61,7 +61,7 @@ Trigger Conditions (use if any are met):
61
61
 
62
62
  ## Model Selection Guide
63
63
 
64
- **IMPORTANT:** Use `gemini-3-pro-image-preview` model for image generation, and `google/gemini-2.5-flash` model for text/image analysis.
64
+ **IMPORTANT:** Use `google/gemini-3-pro-image-preview` model for image generation, and `google/gemini-2.5-flash` model for text/image analysis.
65
65
 
66
66
  ## AI Integration Architecture Patterns
67
67
 
@@ -147,7 +147,7 @@ const handler = async (req: Request): Promise<Response> => {
147
147
  console.log("Processing AI request...");
148
148
 
149
149
  // Call AI Gateway API
150
- const response = await fetch("https://ai.gateway.needware.dev/v1/chat/completions", {
150
+ const response = await fetch("https://www.needware.dev/v1/chat/completions", {
151
151
  method: "POST",
152
152
  headers: {
153
153
  "Content-Type": "application/json",
@@ -548,7 +548,7 @@ const handler = async (req: Request): Promise<Response> => {
548
548
  console.log("Generating image with prompt:", prompt);
549
549
 
550
550
  // Call AI Gateway API with image generation model
551
- const response = await fetch("https://ai.gateway.needware.dev/v1/chat/completions", {
551
+ const response = await fetch("https://www.needware.dev/v1/chat/completions", {
552
552
  method: "POST",
553
553
  headers: {
554
554
  "Content-Type": "application/json",
@@ -711,7 +711,7 @@ const handler = async (req: Request): Promise<Response> => {
711
711
  console.log("Analyzing image...");
712
712
 
713
713
  // Call AI Gateway API
714
- const response = await fetch("https://ai.gateway.needware.dev/v1/chat/completions", {
714
+ const response = await fetch("https://www.needware.dev/v1/chat/completions", {
715
715
  method: "POST",
716
716
  headers: {
717
717
  "Content-Type": "application/json",