ZIm/crates/ai/src
Marshall Bowers ca2cda8d2a
Remove unneeded 'static lifetimes on &strs in constants (#8698)
This PR removes unneeded `'static` lifetimes on `&str`s stored in
`const` declarations.

This addresses some Clippy lints about
[`redundant_static_lifetimes`](https://rust-lang.github.io/rust-clippy/master/index.html#/redundant_static_lifetimes).

In item-level `const` declarations we can rely on lifetime elision and
use the default `'static` lifetime.

Note that associated constants still require an explicit `'static`
lifetime, as explained in
https://github.com/rust-lang/rust/issues/115010.

Release Notes:

- N/A
2024-03-02 00:40:49 -05:00
..
prompts Fix typos detected by crate-ci/typos 2024-01-17 14:31:21 -08:00
providers Remove unneeded 'static lifetimes on &strs in constants (#8698) 2024-03-02 00:40:49 -05:00
ai.rs updated authentication for embedding provider 2023-10-26 11:18:16 +02:00
auth.rs Move interaction with keychain off the main thread 2024-01-24 14:53:05 +01:00
completion.rs clean up warnings and fix tests in the ai crate 2023-10-30 11:07:24 -04:00
embedding.rs moved authentication for the semantic index into the EmbeddingProvider 2023-10-30 10:02:27 -04:00
models.rs move OpenAILanguageModel to providers folder 2023-10-22 13:47:28 +02:00
providers.rs Stub out support for Azure OpenAI (#8624) 2024-02-29 13:02:08 -05:00
test.rs Move interaction with keychain off the main thread 2024-01-24 14:53:05 +01:00