mirror of
http://88.130.71.182:3000/BlitTech/contexta_be.git
synced 2026-06-12 23:23:21 +00:00
fixed storage error
This commit is contained in:
@@ -9,18 +9,13 @@ logger = logging.getLogger(__name__)
|
||||
# Fireworks models are used for free/starter plans so they must always be available.
|
||||
# llama-v3p3-70b-instruct is the guaranteed last resort (confirmed working).
|
||||
_FIREWORKS_FALLBACKS = [
|
||||
"accounts/fireworks/models/kimi-k2p5-instruct",
|
||||
"accounts/fireworks/models/deepseek-v3p2",
|
||||
"accounts/fireworks/models/kimi-k2-instruct-0905",
|
||||
"accounts/fireworks/models/gpt-oss-120b",
|
||||
"accounts/fireworks/models/llama-v3p3-70b-instruct",
|
||||
]
|
||||
|
||||
|
||||
def _normalize_model(model: str) -> str:
|
||||
"""Strip date-based version suffixes from Fireworks model IDs.
|
||||
e.g. 'accounts/fireworks/models/kimi-k2-instruct-0905' → 'accounts/fireworks/models/kimi-k2-instruct'
|
||||
Matches only purely-numeric suffixes (4–8 digits) so names like 'llama-v3p3-70b' are untouched."""
|
||||
if model.startswith("accounts/fireworks/") or model.startswith("fireworks/"):
|
||||
model = re.sub(r"-\d{4,8}$", "", model)
|
||||
return model
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user