Skip to content

Commit

Permalink
lint: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Sinan Karakaya committed Feb 27, 2024
1 parent 0657937 commit e87c99a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/modules/ollamaCheckModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@ import { info } from "./log";
export async function ollamaCheckModel(endpoint: string, model: string, authToken: string) {
// Check if exists
let res = await fetch(endpoint + '/api/tags', {
headers: authToken
? {
headers: authToken ? {
Authorization: `Bearer ${authToken}`,
}
: {},
} : {},
});
if (!res.ok) {
info(await res.text());
Expand Down

0 comments on commit e87c99a

Please sign in to comment.