Skip to content
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

Examples refactor #329

Merged
merged 13 commits into from
Nov 21, 2024
Merged

Examples refactor #329

merged 13 commits into from
Nov 21, 2024

Conversation

ParthSareen
Copy link
Contributor

@ParthSareen ParthSareen commented Nov 21, 2024

  • Reorganized examples and added a readme
  • Added some missing examples

@ParthSareen ParthSareen marked this pull request as ready for review November 21, 2024 00:13
@fujitatomoya
Copy link
Contributor

@ParthSareen thanks for putting things together, i will take a look and share some comments.

Co-authored-by: fujitatomoya <tomoya.fujita825@gmail.com>
@ParthSareen ParthSareen force-pushed the parth/examples-refactor branch from 679ebf9 to adc0843 Compare November 21, 2024 18:59
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
examples/list.py Show resolved Hide resolved
examples/list.py Outdated Show resolved Hide resolved


response: ProcessResponse = ps()
for model in response.models:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

similar comment as list example

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure what you mean - no details section in this response object

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I meant similar output format to list example

examples/README.md Outdated Show resolved Hide resolved
examples/tools.py Outdated Show resolved Hide resolved
@ParthSareen ParthSareen force-pushed the parth/examples-refactor branch 2 times, most recently from a380e22 to 62947c4 Compare November 21, 2024 22:12
@ParthSareen ParthSareen force-pushed the parth/examples-refactor branch from 62947c4 to c64d409 Compare November 21, 2024 22:12
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
examples/ps.py Outdated Show resolved Hide resolved
ParthSareen and others added 2 commits November 21, 2024 14:29
Co-authored-by: Michael Yang <mxyng@pm.me>
Co-authored-by: Michael Yang <mxyng@pm.me>
README.md Outdated Show resolved Hide resolved
examples/async-tools.py Outdated Show resolved Hide resolved
examples/async-tools.py Outdated Show resolved Hide resolved
@ParthSareen ParthSareen force-pushed the parth/examples-refactor branch from 52543c2 to 5229a22 Compare November 21, 2024 22:59
README.md Outdated Show resolved Hide resolved
Co-authored-by: Michael Yang <mxyng@pm.me>
@ParthSareen ParthSareen merged commit 64c1eb7 into main Nov 21, 2024
6 checks passed
@ParthSareen ParthSareen deleted the parth/examples-refactor branch November 21, 2024 23:15
pressdarling pushed a commit to pressdarling/ollama-python that referenced this pull request Dec 1, 2024
* Examples and README updates

---------

Co-authored-by: fujitatomoya <tomoya.fujita825@gmail.com>
Co-authored-by: Michael Yang <mxyng@pm.me>
pressdarling pushed a commit to pressdarling/ollama-python that referenced this pull request Dec 30, 2024
* Examples and README updates

---------

Co-authored-by: fujitatomoya <tomoya.fujita825@gmail.com>
Co-authored-by: Michael Yang <mxyng@pm.me>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants