forked from ex3ndr/llama-coder
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
clean: replaced authToken by bearerToken
- Loading branch information
Sinan Karakaya
committed
Feb 27, 2024
1 parent
e87c99a
commit 84e2897
Showing
4 changed files
with
10 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import { lineGenerator } from "./lineGenerator"; | ||
import { info } from "./log"; | ||
|
||
export async function ollamaDownloadModel(endpoint: string, model: string, authToken: string) { | ||
export async function ollamaDownloadModel(endpoint: string, model: string, bearerToken: string) { | ||
info('Downloading model from ollama: ' + model); | ||
for await (let line of lineGenerator(endpoint + '/api/pull', { name: model }, authToken)) { | ||
for await (let line of lineGenerator(endpoint + '/api/pull', { name: model }, bearerToken)) { | ||
info('[DOWNLOAD] ' + line); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters