-
Notifications
You must be signed in to change notification settings - Fork 203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JavaScript API PS #99
Conversation
README.md
Outdated
### process | ||
|
||
```javascript | ||
ollama.process() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ollama.process() | |
ollama.ps() |
README.md
Outdated
@@ -187,6 +187,14 @@ ollama.embeddings(request) | |||
- `options` `<Options>`: (Optional) Options to configure the runtime. | |||
- Returns: `<EmbeddingsResponse>` | |||
|
|||
### process |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
### process | |
### ps |
Ideally we describe this a bit but to keep it consistent
I agree that the function should be named consistently with existing functions, but I personally don't think functions should need to be named the same as the API endpoint because surely the purpose of this library is to abstract away from the API. Obviously, though, this would be a breaking change, so it would either need to be a major change or act as aliases (perhaps with old ones being deprecated). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good, thanks for adding this. I missed that this would need to be updated.
examples/list/list.ts
Outdated
@@ -0,0 +1,16 @@ | |||
import ollama from '../../src/browser' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's omit this example for now
No description provided.