chips
commited on
Commit
·
901f789
1
Parent(s):
9d29fca
not using pydantic for product schema
Browse files- app/config.py +1 -1
- app/services/base.py +2 -1
app/config.py
CHANGED
@@ -38,7 +38,7 @@ class Settings(BaseSettings):
|
|
38 |
# Supported anthropic models
|
39 |
ANTHROPIC_MODELS: list = [
|
40 |
"claude-3-5-sonnet-latest", # first model is the default of the vendor
|
41 |
-
"claude-sonnet-
|
42 |
]
|
43 |
|
44 |
# Supprted AI Services
|
|
|
38 |
# Supported anthropic models
|
39 |
ANTHROPIC_MODELS: list = [
|
40 |
"claude-3-5-sonnet-latest", # first model is the default of the vendor
|
41 |
+
"claude-3-7-sonnet-20250219"
|
42 |
]
|
43 |
|
44 |
# Supprted AI Services
|
app/services/base.py
CHANGED
@@ -50,7 +50,8 @@ class Product(BaseModel):
|
|
50 |
"""
|
51 |
pydantic_code = pydantic_schema.strip()
|
52 |
exec(pydantic_code, globals())
|
53 |
-
return Product
|
|
|
54 |
|
55 |
def build_attributes_types_prompt(attributes):
|
56 |
list_of_types_prompt = "\n List of attributes types:\n"
|
|
|
50 |
"""
|
51 |
pydantic_code = pydantic_schema.strip()
|
52 |
exec(pydantic_code, globals())
|
53 |
+
#return Product
|
54 |
+
return cf_style_schema
|
55 |
|
56 |
def build_attributes_types_prompt(attributes):
|
57 |
list_of_types_prompt = "\n List of attributes types:\n"
|