New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

crewplus

Package Overview
Dependencies
Maintainers
2
Versions
95
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

crewplus - pypi Package Compare versions

Comparing version
0.2.92
to
0.2.93
+13
-13
crewplus/services/claude_chat_model.py

@@ -60,3 +60,3 @@ import os

project_id (str): Google Cloud Project ID.
region (str): Google Cloud region (e.g., "global", "us-east1", "europe-west1").
location (str): Google Cloud location (e.g., "global", "us-east1", "europe-west1").
temperature (Optional[float]): The sampling temperature for generation (0.0 to 1.0).

@@ -86,3 +86,3 @@ max_tokens (int): The maximum number of tokens to generate.

project_id="your-gcp-project-id",
region="global",
location="global",
max_tokens=1024

@@ -139,4 +139,4 @@ )

- Model IDs use the format: "claude-opus-4-5" (the SDK handles version suffixes)
- The "global" region provides maximum availability with dynamic routing
- Regional endpoints (e.g., "us-east1") guarantee data routing through specific regions
- The "global" location provides maximum availability with dynamic routing
- Regional endpoints (e.g., "us-east1") guarantee data routing through specific locations
"""

@@ -150,5 +150,5 @@

project_id: str = Field(description="Google Cloud Project ID")
region: str = Field(
location: str = Field(
default="global",
description="Google Cloud region (e.g., 'global', 'us-east1', 'europe-west1')"
description="Google Cloud location (e.g., 'global', 'us-east1', 'europe-west1')"
)

@@ -209,5 +209,5 @@ temperature: Optional[float] = Field(default=1.0, description="Sampling temperature (0.0 to 1.0)")

# Get region from environment if not provided
if not self.region:
self.region = os.getenv("GCP_LOCATION", "global")
# Get location from environment if not provided
if not self.location:
self.location = os.getenv("GCP_LOCATION", "global")

@@ -228,3 +228,3 @@ # Set service account file from environment if available

project_id=self.project_id,
region=self.region
region=self.location
)

@@ -235,3 +235,3 @@

project_id=self.project_id,
region=self.region
region=self.location
)

@@ -241,3 +241,3 @@

f"Initialized ClaudeChatModel with model: {self.model_name} "
f"(Project: {self.project_id}, Region: {self.region})"
f"(Project: {self.project_id}, Location: {self.location})"
)

@@ -395,3 +395,3 @@ except Exception as e:

"project_id": self.project_id,
"region": self.region,
"location": self.location,
}

@@ -398,0 +398,0 @@

@@ -217,3 +217,3 @@ import json

# Extract model name from deployment_name (handles 'model_name@location' or 'model_name@region' format)
# Extract model name from deployment_name (handles 'model_name@location' format)
model_name = deployment_name.split('@')[0] if '@' in deployment_name else deployment_name

@@ -227,4 +227,3 @@

'project_id': model_config['project_id'],
# Claude uses 'region', but support 'location' for backward compatibility
'region': model_config.get('region', model_config.get('location', 'global')),
'location': model_config['location'],
}

@@ -231,0 +230,0 @@ if 'service_account_file' in model_config:

Metadata-Version: 2.1
Name: crewplus
Version: 0.2.92
Version: 0.2.93
Summary: Base services for CrewPlus AI applications

@@ -5,0 +5,0 @@ Author-Email: Tim Liu <tim@opsmateai.com>

@@ -9,3 +9,3 @@ [build-system]

name = "crewplus"
version = "0.2.92"
version = "0.2.93"
description = "Base services for CrewPlus AI applications"

@@ -12,0 +12,0 @@ authors = [