Merge f3afe38af0
into 2c64b05ea4
This commit is contained in:
commit
0114126d51
1 changed files with 5 additions and 1 deletions
|
@ -9,7 +9,7 @@ use language_model::{
|
|||
AuthenticateError, LanguageModel, LanguageModelCompletionError, LanguageModelCompletionEvent,
|
||||
LanguageModelId, LanguageModelName, LanguageModelProvider, LanguageModelProviderId,
|
||||
LanguageModelProviderName, LanguageModelProviderState, LanguageModelRequest,
|
||||
LanguageModelToolChoice, RateLimiter,
|
||||
LanguageModelToolChoice, LanguageModelToolSchemaFormat, RateLimiter,
|
||||
};
|
||||
use menu;
|
||||
use open_ai::{ResponseStreamEvent, stream_completion};
|
||||
|
@ -322,6 +322,10 @@ impl LanguageModel for OpenAiCompatibleLanguageModel {
|
|||
self.model.capabilities.tools
|
||||
}
|
||||
|
||||
fn tool_input_format(&self) -> LanguageModelToolSchemaFormat {
|
||||
LanguageModelToolSchemaFormat::JsonSchemaSubset
|
||||
}
|
||||
|
||||
fn supports_images(&self) -> bool {
|
||||
self.model.capabilities.images
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue