Add proxy configuration to help rotate Baidu IPs - #2
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| from datetime import date | ||
| from typing import List, Optional | ||
|
|
||
| from pydantic import BaseModel, Field, validator |
There was a problem hiding this comment.
Import removed Pydantic validator decorator
The models module still imports and uses validator, but requirements.txt pins FastAPI ≥0.110 which installs Pydantic v2, where the top‑level validator symbol has been removed. Attempting to import this module will raise ImportError: cannot import name 'validator' from 'pydantic', preventing the API from starting. Switch to field_validator or import from pydantic.v1 so the validation code works under the dependencies declared here.
Useful? React with 👍 / 👎.
Summary
Testing
https://chatgpt.com/codex/tasks/task_e_68f31e417a34832f91a6fdef169bb3ff