added credential provider to completion provider

This commit is contained in:
KCaverly 2023-10-28 16:35:43 -04:00
parent 7af77b1cf9
commit 558f54c424
5 changed files with 22 additions and 9 deletions

View file

@ -155,6 +155,9 @@ impl CompletionProvider for TestCompletionProvider {
let model: Box<dyn LanguageModel> = Box::new(FakeLanguageModel { capacity: 8190 });
model
}
fn credential_provider(&self) -> Box<dyn CredentialProvider> {
Box::new(NullCredentialProvider {})
}
fn complete(
&self,
_prompt: Box<dyn CompletionRequest>,