shotgun-sh 0.2.10.dev1__py3-none-any.whl → 0.2.10.dev3__py3-none-any.whl
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.
Potentially problematic release.
This version of shotgun-sh might be problematic. Click here for more details.
- shotgun/agents/config/manager.py +2 -2
- shotgun/agents/config/models.py +8 -0
- shotgun/agents/config/provider.py +3 -3
- shotgun/api_endpoints.py +8 -2
- {shotgun_sh-0.2.10.dev1.dist-info → shotgun_sh-0.2.10.dev3.dist-info}/METADATA +1 -1
- {shotgun_sh-0.2.10.dev1.dist-info → shotgun_sh-0.2.10.dev3.dist-info}/RECORD +9 -9
- {shotgun_sh-0.2.10.dev1.dist-info → shotgun_sh-0.2.10.dev3.dist-info}/WHEEL +0 -0
- {shotgun_sh-0.2.10.dev1.dist-info → shotgun_sh-0.2.10.dev3.dist-info}/entry_points.txt +0 -0
- {shotgun_sh-0.2.10.dev1.dist-info → shotgun_sh-0.2.10.dev3.dist-info}/licenses/LICENSE +0 -0
shotgun/agents/config/manager.py
CHANGED
|
@@ -142,7 +142,7 @@ class ConfigManager:
|
|
|
142
142
|
# Find default model for this provider
|
|
143
143
|
provider_models = {
|
|
144
144
|
ProviderType.OPENAI: ModelName.GPT_5,
|
|
145
|
-
ProviderType.ANTHROPIC: ModelName.
|
|
145
|
+
ProviderType.ANTHROPIC: ModelName.CLAUDE_HAIKU_4_5,
|
|
146
146
|
ProviderType.GOOGLE: ModelName.GEMINI_2_5_PRO,
|
|
147
147
|
}
|
|
148
148
|
|
|
@@ -243,7 +243,7 @@ class ConfigManager:
|
|
|
243
243
|
|
|
244
244
|
provider_models = {
|
|
245
245
|
ProviderType.OPENAI: ModelName.GPT_5,
|
|
246
|
-
ProviderType.ANTHROPIC: ModelName.
|
|
246
|
+
ProviderType.ANTHROPIC: ModelName.CLAUDE_HAIKU_4_5,
|
|
247
247
|
ProviderType.GOOGLE: ModelName.GEMINI_2_5_PRO,
|
|
248
248
|
}
|
|
249
249
|
if provider_enum in provider_models:
|
shotgun/agents/config/models.py
CHANGED
|
@@ -28,6 +28,7 @@ class ModelName(StrEnum):
|
|
|
28
28
|
GPT_5_MINI = "gpt-5-mini"
|
|
29
29
|
CLAUDE_OPUS_4_1 = "claude-opus-4-1"
|
|
30
30
|
CLAUDE_SONNET_4_5 = "claude-sonnet-4-5"
|
|
31
|
+
CLAUDE_HAIKU_4_5 = "claude-haiku-4-5"
|
|
31
32
|
GEMINI_2_5_PRO = "gemini-2.5-pro"
|
|
32
33
|
GEMINI_2_5_FLASH = "gemini-2.5-flash"
|
|
33
34
|
|
|
@@ -110,6 +111,13 @@ MODEL_SPECS: dict[ModelName, ModelSpec] = {
|
|
|
110
111
|
max_output_tokens=16_000,
|
|
111
112
|
litellm_proxy_model_name="anthropic/claude-sonnet-4-5",
|
|
112
113
|
),
|
|
114
|
+
ModelName.CLAUDE_HAIKU_4_5: ModelSpec(
|
|
115
|
+
name=ModelName.CLAUDE_HAIKU_4_5,
|
|
116
|
+
provider=ProviderType.ANTHROPIC,
|
|
117
|
+
max_input_tokens=200_000,
|
|
118
|
+
max_output_tokens=64_000,
|
|
119
|
+
litellm_proxy_model_name="anthropic/claude-haiku-4-5",
|
|
120
|
+
),
|
|
113
121
|
ModelName.GEMINI_2_5_PRO: ModelSpec(
|
|
114
122
|
name=ModelName.GEMINI_2_5_PRO,
|
|
115
123
|
provider=ProviderType.GOOGLE,
|
|
@@ -172,7 +172,7 @@ def get_provider_model(
|
|
|
172
172
|
model_name = provider_or_model
|
|
173
173
|
else:
|
|
174
174
|
# No specific model requested - use selected or default
|
|
175
|
-
model_name = config.selected_model or ModelName.
|
|
175
|
+
model_name = config.selected_model or ModelName.CLAUDE_HAIKU_4_5
|
|
176
176
|
|
|
177
177
|
if model_name not in MODEL_SPECS:
|
|
178
178
|
raise ValueError(f"Model '{model_name.value}' not found")
|
|
@@ -247,8 +247,8 @@ def get_provider_model(
|
|
|
247
247
|
if not api_key:
|
|
248
248
|
raise ValueError("Anthropic API key not configured. Set via config.")
|
|
249
249
|
|
|
250
|
-
# Use requested model or default to claude-
|
|
251
|
-
model_name = requested_model if requested_model else ModelName.
|
|
250
|
+
# Use requested model or default to claude-haiku-4-5
|
|
251
|
+
model_name = requested_model if requested_model else ModelName.CLAUDE_HAIKU_4_5
|
|
252
252
|
if model_name not in MODEL_SPECS:
|
|
253
253
|
raise ValueError(f"Model '{model_name.value}' not found")
|
|
254
254
|
spec = MODEL_SPECS[model_name]
|
shotgun/api_endpoints.py
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
"""Shotgun backend service API endpoints and URLs."""
|
|
2
2
|
|
|
3
|
+
import os
|
|
4
|
+
|
|
3
5
|
# Shotgun Web API base URL (for authentication/subscription)
|
|
4
6
|
# Can be overridden with environment variable
|
|
5
|
-
SHOTGUN_WEB_BASE_URL =
|
|
7
|
+
SHOTGUN_WEB_BASE_URL = os.getenv(
|
|
8
|
+
"SHOTGUN_WEB_BASE_URL", "https://api-219702594231.us-east4.run.app"
|
|
9
|
+
)
|
|
6
10
|
# Shotgun's LiteLLM proxy base URL (for AI model requests)
|
|
7
|
-
LITELLM_PROXY_BASE_URL =
|
|
11
|
+
LITELLM_PROXY_BASE_URL = os.getenv(
|
|
12
|
+
"SHOTGUN_ACCOUNT_LLM_BASE_URL", "https://litellm-219702594231.us-east4.run.app"
|
|
13
|
+
)
|
|
8
14
|
|
|
9
15
|
# Provider-specific LiteLLM proxy endpoints
|
|
10
16
|
LITELLM_PROXY_ANTHROPIC_BASE = f"{LITELLM_PROXY_BASE_URL}/anthropic"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
shotgun/__init__.py,sha256=P40K0fnIsb7SKcQrFnXZ4aREjpWchVDhvM1HxI4cyIQ,104
|
|
2
|
-
shotgun/api_endpoints.py,sha256=
|
|
2
|
+
shotgun/api_endpoints.py,sha256=fBMTAQDyDXFY622MSrya5i_0ur_KYrCNg6wMf7QJVb4,627
|
|
3
3
|
shotgun/build_constants.py,sha256=RXNxMz46HaB5jucgMVpw8a2yCJqjbhTOh0PddyEVMN8,713
|
|
4
4
|
shotgun/logging_config.py,sha256=UKenihvgH8OA3W0b8ZFcItYaFJVe9MlsMYlcevyW1HY,7440
|
|
5
5
|
shotgun/main.py,sha256=4HLlnSmkVdm97yFCsXpY7d598xkOL7jtJLTq5sHPzrs,6762
|
|
@@ -23,9 +23,9 @@ shotgun/agents/tasks.py,sha256=AuriwtDn6uZz2G0eKfqBHYQrxYfJlbiAd-fcsw9lU3I,2949
|
|
|
23
23
|
shotgun/agents/usage_manager.py,sha256=5d9JC4_cthXwhTSytMfMExMDAUYp8_nkPepTJZXk13w,5017
|
|
24
24
|
shotgun/agents/config/__init__.py,sha256=Fl8K_81zBpm-OfOW27M_WWLSFdaHHek6lWz95iDREjQ,318
|
|
25
25
|
shotgun/agents/config/constants.py,sha256=JNuLpeBUKikEsxGSjwX3RVWUQpbCKnDKstF2NczuDqk,932
|
|
26
|
-
shotgun/agents/config/manager.py,sha256=
|
|
27
|
-
shotgun/agents/config/models.py,sha256=
|
|
28
|
-
shotgun/agents/config/provider.py,sha256=
|
|
26
|
+
shotgun/agents/config/manager.py,sha256=Z8EQoWPQM7uj3MyklmxHQ1GR6va1uv9BjT5DDvAv3pY,18920
|
|
27
|
+
shotgun/agents/config/models.py,sha256=tM0JnMf-hWWzJCmOsJBA6tIiwrdFTQI_4B0zYFNg6CU,5736
|
|
28
|
+
shotgun/agents/config/provider.py,sha256=tqxcVGCOy7j1fakL9M994TE0v4dCG1OuySrGkbUnSQI,12493
|
|
29
29
|
shotgun/agents/history/__init__.py,sha256=XFQj2a6fxDqVg0Q3juvN9RjV_RJbgvFZtQOCOjVJyp4,147
|
|
30
30
|
shotgun/agents/history/compaction.py,sha256=9RMpG0aY_7L4TecbgwHSOkGtbd9W5XZTg-MbzZmNl00,3515
|
|
31
31
|
shotgun/agents/history/constants.py,sha256=yWY8rrTZarLA3flCCMB_hS2NMvUDRDTwP4D4j7MIh1w,446
|
|
@@ -148,8 +148,8 @@ shotgun/utils/env_utils.py,sha256=ulM3BRi9ZhS7uC-zorGeDQm4SHvsyFuuU9BtVPqdrHY,14
|
|
|
148
148
|
shotgun/utils/file_system_utils.py,sha256=l-0p1bEHF34OU19MahnRFdClHufThfGAjQ431teAIp0,1004
|
|
149
149
|
shotgun/utils/source_detection.py,sha256=Co6Q03R3fT771TF3RzB-70stfjNP2S4F_ArZKibwzm8,454
|
|
150
150
|
shotgun/utils/update_checker.py,sha256=IgzPHRhS1ETH7PnJR_dIx6lxgr1qHpCkMTgzUxvGjhI,7586
|
|
151
|
-
shotgun_sh-0.2.10.
|
|
152
|
-
shotgun_sh-0.2.10.
|
|
153
|
-
shotgun_sh-0.2.10.
|
|
154
|
-
shotgun_sh-0.2.10.
|
|
155
|
-
shotgun_sh-0.2.10.
|
|
151
|
+
shotgun_sh-0.2.10.dev3.dist-info/METADATA,sha256=3SV48d2PulzqbFQlQqjhMe6zOcAMQxyW31MkgKgACeo,4336
|
|
152
|
+
shotgun_sh-0.2.10.dev3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
153
|
+
shotgun_sh-0.2.10.dev3.dist-info/entry_points.txt,sha256=asZxLU4QILneq0MWW10saVCZc4VWhZfb0wFZvERnzfA,45
|
|
154
|
+
shotgun_sh-0.2.10.dev3.dist-info/licenses/LICENSE,sha256=YebsZl590zCHrF_acCU5pmNt0pnAfD2DmAnevJPB1tY,1065
|
|
155
|
+
shotgun_sh-0.2.10.dev3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|