Localwriter 0.0.5 installation and usage

LO 25.2
I have installed Localwriter 0.0.5 extension
author requires installation of
text-generation-webui recommended version openchat3.5

This all gets confusing.
I’ve downloaded text gen webui and extracted it in the download but does that need to be extracted in a permanent file?
As to openchat 3.5 same thing no instructions how to load or use
same with author says nothing i’ve found so far except CTRL-q which is not working

only respond if you ACTUALLY have this working !

Hi there,

I likely will change the recommended backend to ollama soon. I recommend using ollama instead :^)

This video series shows how to use ollama as a backend:

If you want to use text-generation-webui, you need to run it in API mode. Here are some instructions for that:

Oh also, I’d recommend picking up the most recent version from the repository, version 0.0.5 had a regression. I went ahead and submitted a draft of 0.0.6 for publication on the extensions store, but it’s still pending review.

<urlopen error [WinError 10061] No connection could be made because the target machine actively refused it>

here’s the problem.
Is this to be made into a .py file and stored in the scripts/python
OR: is these some kind of command prompt commands?
start with these questions.

import requests
import sseclient # pip install sseclient-py
import json

url = “http://127.0.0.1:5000/v1/chat/completions

headers = {
“Content-Type”: “application/json”
}

history = []

while True:
user_message = input("> ")
history.append({“role”: “user”, “content”: user_message})
data = {
“mode”: “instruct”,
“stream”: True,
“messages”: history
}

stream_response = requests.post(url, headers=headers, json=data, verify=False, stream=True)
client = sseclient.SSEClient(stream_response)

assistant_message = ''
for event in client.events():
    payload = json.loads(event.data)
    chunk = payload['choices'][0]['delta']['content']
    assistant_message += chunk
    print(chunk, end='')

print()
history.append({"role": "assistant", "content": assistant_message})

The import-lines with the comment shows:
This is part of a python file. (Actually you are free to type them yourself into the prompt of a python-console like “Idle”.)

I recommend installing ollama.

You can follow these instructions to install ollama: https://www.ralgar.one/ollama-on-windows-a-beginners-guide/

Then run the command

ollama run gemma3:1b

Then, configure your localwriter settings so they look like this:
image

Gemma3:1b is a really fast model that should run fine on pretty much any computer.

Do let me know if you manage to get it working. It will help others trying to set up localwriter on Windows.

P.S. Make sure to use version 0.0.6 or 0.0.4, as version 0.0.5 had a regression that broke ollama support.

Libre office 25.2.3.2
win11

ollama loaded
gemma3 got loaded
a manifest loaded
localwriter.oxt 0.0.6 from github loaded
changed settings

yes, it’s running
tnx
eddie

glad it’s working for ya; going forward feel free to submit feature requests or report technical issues on the repository

will do! I’m working with it now

tnx again
ea

LO 25.2.3.2
win11
not able to make a menu in LObasic
don’t speak .py and OOOdevTools well enough yet
I couldn’t find the suggestion box on github

hi jbalis,

I don’t know if your interested in doing the following but i’ll ask:

I notice you have ‘add-ons’ that’s a menu maker on github.

  1. Can you make a menu in CALC?
  2. What i’d like it to do is COPY some cells, OPEN a new TEXT DOC and paste unformatted text into it.
  3. Select the whole PASTE thing, and exercise the ‘Extend Selection’
  4. then CLOSE or do a SAVE AS or whatever is possible.

tnx
eddie

Please open new topics for new questions.
Or would you expect something on this question under
“Localewriter … Install and usage” ?