Improve: use llm to extract structured data #9
Annotations
2 errors and 9 warnings
no method named `datetime` found for reference `&publish::models::PublishNews` in the current scope:
src/publish/pgsql/models.rs#L27
error[E0599]: no method named `datetime` found for reference `&publish::models::PublishNews` in the current scope
--> src/publish/pgsql/models.rs:27:29
|
27 | .datetime(value.datetime().to_owned())
| ^^^^^^^^
|
help: there is a method `date` with a similar name
|
27 | .datetime(value.date().to_owned())
| ~~~~
|
clippy
Clippy had exited with the 101 exit code
|
constants have by default a `'static` lifetime:
src/crawler/llm/prompt.rs#L147
warning: constants have by default a `'static` lifetime
--> src/crawler/llm/prompt.rs:147:55
|
147 | pub(super) const _SCRAPE_HTML_SYSTEM_PROMPT_AS_JSON: &'static str = r#"
| -^^^^^^^---- help: consider removing `'static`: `&str`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes
|
constants have by default a `'static` lifetime:
src/crawler/llm/prompt.rs#L85
warning: constants have by default a `'static` lifetime
--> src/crawler/llm/prompt.rs:85:54
|
85 | pub(super) const _SCRAPE_HTML_SYSTEM_PROMPT_AS_XML: &'static str = r#"
| -^^^^^^^---- help: consider removing `'static`: `&str`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes
|
constants have by default a `'static` lifetime:
src/crawler/llm/prompt.rs#L45
warning: constants have by default a `'static` lifetime
--> src/crawler/llm/prompt.rs:45:54
|
45 | pub(super) const SCRAPE_HTML_SYSTEM_PROMPT_AS_TEXT: &'static str = r#"
| -^^^^^^^---- help: consider removing `'static`: `&str`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes
|
constants have by default a `'static` lifetime:
src/crawler/llm/prompt.rs#L5
warning: constants have by default a `'static` lifetime
--> src/crawler/llm/prompt.rs:5:51
|
5 | pub(super) const _SCRAPE_HTML_SYSTEM_PROMPT_SUM: &'static str = r#"
| -^^^^^^^---- help: consider removing `'static`: `&str`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes
|
constants have by default a `'static` lifetime:
src/crawler/llm/prompt.rs#L3
warning: constants have by default a `'static` lifetime
--> src/crawler/llm/prompt.rs:3:36
|
3 | pub(super) const USER_QUERY_NAME: &'static str = "user-query";
| -^^^^^^^---- help: consider removing `'static`: `&str`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes
|
constants have by default a `'static` lifetime:
src/crawler/llm/prompt.rs#L2
warning: constants have by default a `'static` lifetime
--> src/crawler/llm/prompt.rs:2:39
|
2 | pub(super) const SYSTEM_PROMPT_NAME: &'static str = "system-prompt";
| -^^^^^^^---- help: consider removing `'static`: `&str`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes
|
constants have by default a `'static` lifetime:
src/crawler/llm/prompt.rs#L1
warning: constants have by default a `'static` lifetime
--> src/crawler/llm/prompt.rs:1:35
|
1 | pub(super) const LLM_MODEL_NAME: &'static str = "gpt-4o-2024-08-06";
| -^^^^^^^---- help: consider removing `'static`: `&str`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes
= note: `#[warn(clippy::redundant_static_lifetimes)]` on by default
|
clippy
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
clippy
The following actions use a deprecated Node.js version and will be forced to run on node20: actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|