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:
Bennet Bo Fenner 2024-07-30 09:54:42 +02:00 committed by GitHub
parent 0c8b17d252
commit 2a649fa824
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,6 +1,7 @@
use std::future;
use std::sync::Arc;
use anyhow::Result;
use anyhow::{anyhow, Result};
use copilot::copilot_chat::{
ChatMessage, CopilotChat, Model as CopilotChatModel, Request as CopilotChatRequest,
Role as CopilotChatRole,
@ -236,6 +237,17 @@ impl LanguageModel for CopilotChatLanguageModel {
})
.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 {