You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Note**: Commencing from [v0.1.0](https://github.com/Simatwa/python-tgpt/releases/), the default mode of interaction is conversational. This mode enhances the interactive experience, offering better control over the chat history. By associating previous prompts and responses, it tailors conversations for a more engaging experience.
500
+
> [!IMPORTANT]
501
+
> Commencing from [v0.1.0](https://github.com/Simatwa/python-tgpt/releases/), the default mode of interaction is conversational. This mode enhances the interactive experience, offering better control over the chat history. By associating previous prompts and responses, it tailors conversations for a more engaging experience.
Utilize the `--disable-conversation` flag in the console to achieve the same functionality.
511
510
512
-
> [!WARNING]
511
+
> [!CAUTION]
513
512
> **Bard** autohandles context due to the obvious reason; the `is_conversation` parameter is not necessary at all hence not required when initializing the class. Also be informed that majority of providers offered by *gpt4free* requires *Google Chrome* inorder to function.
514
513
515
514
### Advanced Usage of Placeholders
@@ -524,13 +523,13 @@ The `generate` functionality has been enhanced starting from *v0.3.0* to enable
524
523
This feature is particularly beneficial for intricate operations. For example:
525
524
526
525
```bash
527
-
$ git diff | pytgpt generate "Here is a diff file: {{stream}} Make a concise commit message from it, aligning with my commit message history: {{copied}}" -p fakeopen --shell --new
526
+
$ git diff | pytgpt generate "Here is a diff file: {{stream}} Make a concise commit message from it, aligning with my commit message history: {{copied}}" --shell --new
528
527
```
529
528
> In this illustration, `{{stream}}` denotes the result of the `$ git diff` operation, while `{{copied}}` signifies the content copied from the output of the `$ git log` command.
530
529
531
530
### Introducing RawDog
532
531
533
-
RawDog is a masterpiece feature that exploits the versatile capabilities of Python to command and control your system as per your needs. You can literally do anything with it, since it generates and executes python codes, driven by **your prompts**! To have a bite of *rawdog* simply append the flag `--rawdog`*shortcut*`-rd` in *generate/interactive* mode. This introduces a never seen-before feature in the *tgpt ecosystem*. Thanks to [AbanteAI/rawdog](https://github.com/AbanteAI/rawdog) for the idea.
532
+
RawDog is a masterpiece feature that exploits the versatile capabilities of Python to command and control your system as per your needs. You can literally do anything with it, since it generates and executes python codes, driven by **your prompts**! To have a bite of *rawdog* simply append the flag `--rawdog` *shortform* `-rd` in *generate/interactive* mode. This introduces a never seen-before feature in the *tgpt ecosystem*. Thanks to [AbanteAI/rawdog](https://github.com/AbanteAI/rawdog) for the idea.
534
533
535
534
This can be useful in some ways. For instance :
536
535
@@ -544,29 +543,29 @@ This can be useful in some ways. For instance :
Pytgpt **v0.4.6** introduces a convention way of taking variables from the environment.
554
549
To achieve that, set the environment variables in your operating system or script with prefix `PYTGPT_` followed by the option name in uppercase, replacing dashes with underscores.
555
550
556
551
For example, for the option `--provider`, you would set an environment variable `PYTGPT_PROVIDER` to provide a default value for that option. Same case applies to boolean flags such as `--rawdog` whose environment variable will be `PYTGPT_RAWDOG` with value being either `true/false`. Finally, `--awesome-prompt` will take the environment variable `PYTGPT_AWESOME_PROMPT`.
557
552
553
+
> [!NOTE]
554
+
> This is **NOT** limited to any command
555
+
558
556
The environment variables can be overridden by explicitly declaring new value.
559
557
560
558
> [!TIP]
561
559
> Save the variables in a `.env` file in your current directory or export the them in your `.zshrc` file.
562
560
563
-
> [!NOTE]
564
-
> This is not limited to any command.
565
-
566
561
## Dynamic Provider
567
562
568
563
Version **0.4.6** also introduces dynamic provider called `g4fauto`, which represents the fastest working g4f-based provider.
0 commit comments