Skip to content

feat(api): add model listing functionality and refine client requests - #9

Merged
rfprod merged 1 commit into
mainfrom
model-listing
Oct 6, 2026
Merged

rfprod merged 1 commit into
mainfrom
model-listing

Conversation

@rfprod

@rfprod rfprod commented Oct 6, 2026

Copy link
Copy Markdown
Owner
  • implement query_model_list to fetch and display available local models;
  • replace single url string with OllamaServerURLs struct for multiple endpoints;
  • rename curl_request to query_model for better semantic clarity;
  • move init_curl call from constructor to individual request methods;
  • add HTTP status code validation and mandatory exit on non-200 responses;
  • ensure CURL cleanup and header freeing occur immediately after each request;
  • add error handling and process termination for JSON parsing failures;
  • include prompt logging in the model query process;

@rfprod rfprod self-assigned this Oct 6, 2026
@rfprod rfprod added Enhancement Existing functionality improvement related changes. Feature New feature implementation related changes. Program Main program logic related changes. labels Oct 6, 2026
@rfprod
rfprod enabled auto-merge (squash) October 6, 2026 18:34
- [x] implement `query_model_list` to fetch and display available local models;
- [x] replace single `url` string with `OllamaServerURLs` struct for multiple endpoints;
- [x] rename `curl_request` to `query_model` for better semantic clarity;
- [x] move `init_curl` call from constructor to individual request methods;
- [x] add HTTP status code validation and mandatory exit on non-200 responses;
- [x] ensure CURL cleanup and header freeing occur immediately after each request;
- [x] add error handling and process termination for JSON parsing failures;
- [x] include prompt logging in the model query process;
@rfprod
rfprod disabled auto-merge October 6, 2026 19:08
@rfprod
rfprod merged commit 6fca78d into main Oct 6, 2026
1 check passed
@rfprod
rfprod deleted the model-listing branch October 6, 2026 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Enhancement Existing functionality improvement related changes. Feature New feature implementation related changes. Program Main program logic related changes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant