zazaji / obsidian-SenGener

This plugin is used to generate a serial of Sentenses for writting.
MIT License
50 stars 4 forks source link

SenGenerPlugin for obsidian 中文

This plugin is used to generate a serial of Sentenses for writting.

Thanks

Sengener based on obsidian-completr. I copied lots of code from it. https://github.com/tth05/obsidian-completr

How to use this plugin

  1. download and install obsidian. Create a vault and specify the path.

  2. goto the vault folder. download from releases , and extract them to the plugin folder, the path like: VAULT/.obsidian/plugins/obsidian-sengener.

  3. Open setting, enable community plugins, then set you options, enable SenSener and configure hot-keys. The default shortcut key is ctrl+quotation.

  4. You can also select different authoring models and adjust other parameters.

  5. Create a document and start writing. Enjoy it. And contact me: zazaji@sina.com.

Parameter

Build your data service

{
    "context": "Yes, We ",
    "token": "Your_token",
    "article_type": "english",
    "max_length": 10,
    "number": 3,
    "is_index": true
}

Response Json:


{
    "ref": [{
        "content": "...",
        "title": "Nothing"
    }],
    "sentenses": [{
        "value": ", the people of the United States, stand together"
    }, {
        "value": " to say, this is the best deal we've"
    }, {
        "value": " can't say anything, but it's not our"
    }]
}