ming commited on
Commit
10a33a6
·
1 Parent(s): 563a120

Fix Pydantic import: use pydantic-settings for BaseSettings

Browse files

- Updated import to use pydantic_settings.BaseSettings instead of pydantic.BaseSettings
- Resolves PydanticImportError for Pydantic v2+ compatibility
- Server now starts successfully without import errors

Files changed (1) hide show
  1. app/core/config.py +2 -1
app/core/config.py CHANGED
@@ -3,7 +3,8 @@ Configuration management for the text summarizer backend.
3
  """
4
  import os
5
  from typing import Optional
6
- from pydantic import BaseSettings, Field, validator
 
7
 
8
 
9
  class Settings(BaseSettings):
 
3
  """
4
  import os
5
  from typing import Optional
6
+ from pydantic import Field, validator
7
+ from pydantic_settings import BaseSettings
8
 
9
 
10
  class Settings(BaseSettings):