Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ Installation instructions ([English](docs/installation/installation.en.md), [Esp

GitHub Actions Release Workflow ([English](docs/release/github-release.en.md), [Español](docs/release/github-release.es.md))

LLM Integration ([English](docs/llm/llm-integration.en.md), [Español](docs/llm/llm-integration.es.md))

Development Conditions ([English](docs/meta/Copilot.md))

For more details, check the documentation in the [docs](docs/) folder.
1 change: 1 addition & 0 deletions docs/Copilot.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
- Any workflow, script, or automation should be documented in both languages.
- Pull requests will only be accepted if both language versions are updated.
- **Any relevant design decisions, UI control types, libraries to use, and language requirements must be documented and kept up to date in the file `docs/Copilot.md`.**
- The editor now includes an `LLMButton` component that integrates with OpenAI, Azure and LMStudio via `src/lib/llm-service.ts`.

---

Expand Down
2 changes: 2 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Welcome to the documentation for the macOS editor. Below is a summary of the ava
- [Build Script](build-script.md)
- [Package.json File](package-json.md)
- [Splash Screen Functionality](splash-screen.md)
- [LLM Integration](llm/llm-integration.en.md)

## Documentation Structure

Expand All @@ -21,4 +22,5 @@ graph TD;
A --> F[Build Script];
A --> G[Package.json File];
A --> H[Splash Screen Functionality];
A --> I[LLM Integration];
```
12 changes: 12 additions & 0 deletions docs/llm/llm-integration.en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# LLM Integration

The editor includes an optional button that sends the current document to a Large Language Model.
The service accepts OpenAI, Azure OpenAI or a local LMStudio server.
Configuration is handled via the following environment variables:

- `VITE_LLM_PROVIDER`: `openai`, `azure` or `local`.
- `VITE_LLM_API_KEY`: API key when required.
- `VITE_LLM_ENDPOINT`: custom endpoint URL.
- `VITE_LLM_MODEL`: model name.

When the button is pressed the returned text is inserted at the cursor position.
12 changes: 12 additions & 0 deletions docs/llm/llm-integration.es.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Integración LLM

El editor incluye un botón opcional que envía el documento actual a un modelo de lenguaje.
El servicio permite OpenAI, Azure OpenAI o un servidor local LMStudio.
La configuración se maneja mediante las siguientes variables de entorno:

- `VITE_LLM_PROVIDER`: `openai`, `azure` o `local`.
- `VITE_LLM_API_KEY`: clave de API cuando sea necesaria.
- `VITE_LLM_ENDPOINT`: URL del servicio.
- `VITE_LLM_MODEL`: nombre del modelo.

Al pulsar el botón el texto generado se inserta en la posición del cursor.
Loading
Loading