mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-08 07:35:01 +03:00
language model: Fix missing use_tool method in CopilotChatLanguageModel (#15466)
Broke CI after merging #14842 Release Notes: - N/A Co-authored-by: Thorsten <thorsten@zed.dev>
This commit is contained in:
parent
0c8b17d252
commit
2a649fa824
@ -1,6 +1,7 @@
|
|||||||
|
use std::future;
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
|
|
||||||
use anyhow::Result;
|
use anyhow::{anyhow, Result};
|
||||||
use copilot::copilot_chat::{
|
use copilot::copilot_chat::{
|
||||||
ChatMessage, CopilotChat, Model as CopilotChatModel, Request as CopilotChatRequest,
|
ChatMessage, CopilotChat, Model as CopilotChatModel, Request as CopilotChatRequest,
|
||||||
Role as CopilotChatRole,
|
Role as CopilotChatRole,
|
||||||
@ -236,6 +237,17 @@ impl LanguageModel for CopilotChatLanguageModel {
|
|||||||
})
|
})
|
||||||
.boxed()
|
.boxed()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn use_tool(
|
||||||
|
&self,
|
||||||
|
_request: LanguageModelRequest,
|
||||||
|
_name: String,
|
||||||
|
_description: String,
|
||||||
|
_schema: serde_json::Value,
|
||||||
|
_cx: &AsyncAppContext,
|
||||||
|
) -> BoxFuture<'static, Result<serde_json::Value>> {
|
||||||
|
future::ready(Err(anyhow!("not implemented"))).boxed()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl CopilotChatLanguageModel {
|
impl CopilotChatLanguageModel {
|
||||||
|
Loading…
Reference in New Issue
Block a user