Skip to content

Commit d699f1c

Browse files
committed
style: use region instead of location
1 parent 00f0df2 commit d699f1c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

python/cocoindex/llm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class VertexAiConfig:
2323
kind = "VertexAi"
2424

2525
project: str
26-
location: str | None = None
26+
region: str | None = None
2727

2828

2929
@dataclass

src/llm/gemini.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ impl LlmGenerationClient for VertexAiClient {
259259
let model = format!(
260260
"projects/{}/locations/{}/publishers/google/models/{}",
261261
self.config.project,
262-
self.config.location.as_deref().unwrap_or("global"),
262+
self.config.region.as_deref().unwrap_or("global"),
263263
request.model
264264
);
265265

src/llm/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ pub enum LlmApiType {
2323
#[derive(Debug, Clone, Serialize, Deserialize)]
2424
pub struct VertexAiConfig {
2525
pub project: String,
26-
pub location: Option<String>,
26+
pub region: Option<String>,
2727
}
2828

2929
#[derive(Debug, Clone, Serialize, Deserialize)]

0 commit comments

Comments
 (0)