Skip to content

Commit

Permalink
fix: aI Assistant - model provider can omit API key
Browse files Browse the repository at this point in the history
  • Loading branch information
chhoumann committed May 13, 2024
1 parent 5b0e20b commit d7b2a59
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/quickAddApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,13 +215,6 @@ export class QuickAddApi {
);
}


if (!modelProvider.apiKey) {
throw new Error(
`Model '${_model.name}' requires an API key`
);
}

const assistantRes = await ChunkedPrompt(
{
model: _model,
Expand Down

0 comments on commit d7b2a59

Please sign in to comment.