feat: Adds support for openai-compatible servers replacing the ollama based api #1

Closed
22f9fc65 wants to merge 1 commit from 22f9fc65:adds_openai_support into master
First-time contributor

Replaces ollama protocol with openai protocol for broader compatibility.

Please be free to change anything that is not of your liking, mostly AI generated just make it work for my specific scenario.

Replaces ollama protocol with openai protocol for broader compatibility. Please be free to change anything that is not of your liking, mostly AI generated just make it work for my specific scenario.
22f9fc65 added 1 commit 2025-05-11 16:25:11 +02:00
22f9fc65 force-pushed adds_openai_support from 9157538537 to 938e28d685 2025-05-11 16:27:38 +02:00 Compare
Owner

Oh yeah, this is a lot of changes, not reusing the existing interfacing libraries at all.

However, I'm wondering about this specific change in the prompt :

Do not remove any item

Why ? Although I didn't have an example to show on my demo, there are cases where I would make it remove items.

Oh yeah, this is a lot of changes, not reusing the existing interfacing libraries at all. However, I'm wondering about this specific change in the prompt : > Do not remove any item Why ? Although I didn't have an example to show on my demo, there are cases where I would make it remove items.
Author
First-time contributor

When I used certain models locally, they unexpectedly deleted items without being explicitly requested to do so. For example, if I entered "I need to buy bananas," the model would randomly remove an unrelated item from my list.

You can probably add "unless if explicitly told to" and should allow you to remove stuff.

Again, I understand that this is very different from your original implementation , so feel free to just close this, and maybe just look to add this feat in the future if you want.

For my needs it is working good enough now. :)

When I used certain models locally, they unexpectedly deleted items without being explicitly requested to do so. For example, if I entered "I need to buy bananas," the model would randomly remove an unrelated item from my list. You can probably add "unless if explicitly told to" and should allow you to remove stuff. Again, I understand that this is very different from your original implementation , so feel free to just close this, and maybe just look to add this feat in the future if you want. For my needs it is working good enough now. :)
Owner

You can probably add "unless if explicitly told to"

Good idea.

feel free to just close this, and maybe just look to add this feat in the future if you want

I likely will.

For my needs it is working good enough now. :)

So, you plan to keep using this for real ?

Even though I only meant for it to be a PoC, I was also intending to add the following features :

  • Manual reordering of items
  • Undo/redo
  • Dropdown of available models
  • Chat history
  • UI for errors
  • Retrying

If people really start using this, I might consider moving on to a fully featured kanban.

> You can probably add "unless if explicitly told to" Good idea. > feel free to just close this, and maybe just look to add this feat in the future if you want I likely will. > For my needs it is working good enough now. :) So, you plan to keep using this for real ? Even though I only meant for it to be a PoC, I was also intending to add the following features : - Manual reordering of items - Undo/redo - Dropdown of available models - Chat history - UI for errors - Retrying If people really start using this, I might consider moving on to a fully featured kanban.
22f9fc65 force-pushed adds_openai_support from 938e28d685 to c5685e7764 2025-05-11 16:44:07 +02:00 Compare
22f9fc65 closed this pull request 2025-05-11 16:44:55 +02:00
Author
First-time contributor

I like the idea of editing the todo list with prompts. but likely I won't , I use a MCP for todoist that is super heavy and clunky, I will probably adopt a similar idea to this here and make it into a mcp server instead but no UI.

I like the idea of editing the todo list with prompts. but likely I won't , I use a MCP for todoist that is super heavy and clunky, I will probably adopt a similar idea to this here and make it into a mcp server instead but no UI.
Author
First-time contributor

btw, this branch adds this: Dropdown of available models

btw, this branch adds this: `Dropdown of available models`
22f9fc65 deleted branch adds_openai_support 2025-05-11 17:06:04 +02:00
Owner

I see !

await openai.models.list();

Maybe I'll end up switching to this library in the end then.

I see ! > `await openai.models.list();` Maybe I'll end up switching to this library in the end then.
Author
First-time contributor

Feel free to get the patch from the last revision and apply :)
https://git.kaki87.net/KaKi87/promptable-todo-list/commit/c5685e7764d6fb03839e45a4cb27a301462ea174.patch

Feel free to get the patch from the last revision and apply :) ```https://git.kaki87.net/KaKi87/promptable-todo-list/commit/c5685e7764d6fb03839e45a4cb27a301462ea174.patch```
Owner

I'll do it in a way that minimally changes the code though, but thanks.

I'll do it in a way that minimally changes the code though, but thanks.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: KaKi87/promptable-todo-list#1
No description provided.