This commit is contained in:
Marco Realacci 2024-11-02 16:28:37 +01:00
parent be7844b4f3
commit eea09ec9b8
15 changed files with 35749 additions and 63 deletions

19
.obsidian/plugins/companion/data.json vendored Normal file
View file

@ -0,0 +1,19 @@
{
"provider": "ollama",
"model": "qwen2.5:14b",
"enable_by_default": false,
"keybind": "Tab",
"delay_ms": 2000,
"stream": true,
"accept": {
"splitter_regex": " ",
"display_splitter_regex": "[.?!:;]",
"completion_completeness_regex": ".*(?!p{L})[^d]$",
"min_accept_length": 4,
"min_display_length": 50,
"retrigger_threshold": 48
},
"provider_settings": {},
"presets": [],
"fallback": null
}

35514
.obsidian/plugins/companion/main.js vendored Normal file

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,11 @@
{
"id": "companion",
"name": "Companion",
"version": "1.8.0",
"minAppVersion": "1.1.16",
"description": "Autocomplete with AI, including ChatGPT and ollama, through a copilot-like interface.",
"author": "rizerphe",
"authorUrl": "https://github.com/rizerphe",
"fundingUrl": "https://www.buymeacoffee.com/rizerphe",
"isDesktopOnly": false
}

25
.obsidian/plugins/companion/styles.css vendored Normal file
View file

@ -0,0 +1,25 @@
/* src/styles.sass */
.ai-complete-advanced-settings {
padding-left: 1rem;
}
.ai-complete-chatgpt-full-width {
width: 100%;
min-height: 120px;
resize: none;
}
.ai-complete-jurassic-expandable {
display: flex;
flex-direction: row;
align-items: center;
gap: 0.5rem;
}
.ai-complete-ollama-full-width {
width: 100%;
min-height: 120px;
resize: none;
}
.ai-complete-groq-full-width {
width: 100%;
min-height: 120px;
resize: none;
}