Skip to content

Commit

Permalink
Merge pull request #5 from BruceMacD/127-default
Browse files Browse the repository at this point in the history
default to 127.0.0.1 as ollama address rather than localhost
  • Loading branch information
saul-jb authored Jan 9, 2024
2 parents 5dbaca3 + 1ec3c84 commit 9cac7c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ new Ollama(config);
```

- `config` `<Object>` The configuration object for Ollama.
- `address` `<string>` The Ollama API address. Default: `"http://localhost:11434"`.
- `address` `<string>` The Ollama API address. Default: `"http://127.0.0.1:11434"`.

Create a new API handler for ollama.

Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class Ollama {

constructor (config?: Partial<Config>) {
this.config = {
address: config?.address ?? "http://localhost:11434"
address: config?.address ?? "http://127.0.0.1:11434"
};

let f: Fetch | null = null;
Expand Down

0 comments on commit 9cac7c7

Please sign in to comment.