Skip to content

Commit

Permalink
addign withCredentials to model params
Browse files Browse the repository at this point in the history
  • Loading branch information
moshemalawach committed Jul 16, 2024
1 parent f693207 commit 92b3639
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/inference.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export class LlamaCppApiEngine {

// Make the request
const response = await axios.post(model.apiUrl, params, {
withCredentials: true,
withCredentials: model.withCredentials,
});
const data = response.data;

Expand Down
2 changes: 2 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ export interface Model {

/* Prompt formatting */
promptFormat: PromptFormat;

withCredentials: boolean;
}

/* Store Configuration types */
Expand Down

0 comments on commit 92b3639

Please sign in to comment.