diff options
| author | sigoden <sigoden@gmail.com> | 2024-10-19 18:25:40 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-19 18:25:40 +0800 |
| commit | 7e29f642a99682ea7bb074eb4e7aa7d34d523515 (patch) | |
| tree | 248bbcb5d3af83981e451eb115f1fde23c8386de /src/client/model.rs | |
| parent | c5e4421e0da6d647a636ec4cf23c110ff515e79a (diff) | |
| download | aichat-7e29f642a99682ea7bb074eb4e7aa7d34d523515.tar.gz | |
feat: support openai o1 models (#935)
Diffstat (limited to 'src/client/model.rs')
| -rw-r--r-- | src/client/model.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/client/model.rs b/src/client/model.rs index 08ced10..f8a23ff 100644 --- a/src/client/model.rs +++ b/src/client/model.rs @@ -183,6 +183,14 @@ impl Model { self.data.supports_vision } + pub fn no_stream(&self) -> bool { + self.data.no_stream + } + + pub fn no_system_message(&self) -> bool { + self.data.no_system_message + } + pub fn max_tokens_per_chunk(&self) -> Option<usize> { self.data.max_tokens_per_chunk } @@ -268,6 +276,10 @@ pub struct ModelData { pub supports_vision: bool, #[serde(default)] pub supports_function_calling: bool, + #[serde(default)] + no_stream: bool, + #[serde(default)] + no_system_message: bool, // embedding-only properties pub max_tokens_per_chunk: Option<usize>, |
