-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7d20476
commit 02a8ca3
Showing
11 changed files
with
524 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,3 +38,7 @@ __pycache__/ | |
build/ | ||
|
||
bld | ||
|
||
# LLM Implementation | ||
*_api_key.txt | ||
*_chat_history.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
Magics commands | ||
-------------------- | ||
|
||
Magics are special commands for the kernel that are not part of the C++ | ||
programming language. | ||
|
||
There are defined with the symbol ``%`` for a line magic and ``%%`` for a cell | ||
magic. | ||
|
||
Here are the magics available in xeus-cpp. | ||
|
||
%%xassist | ||
======================== | ||
|
||
Leverage the large language models to assist in your development process. Currently supported models are Gemini - gemini-1.5-flash, OpenAI - gpt-3.5-turbo-16k. | ||
|
||
- Save the api key | ||
|
||
.. code:: | ||
%%xassist model --save-key | ||
key | ||
- Use the model | ||
|
||
.. code:: | ||
%%xassist model | ||
prompt | ||
- Reset model and clear chat history | ||
|
||
.. code:: | ||
%%xassist model --refresh | ||
- Example | ||
|
||
.. image:: gemini.png | ||
|
||
A new prompt is sent to the model everytime and the functionality to use previous context will be added soon. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,4 @@ channels: | |
dependencies: | ||
- cmake | ||
- emsdk >=3.1.11 | ||
- empack >=2.0.1 | ||
- empack >=2.0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,4 @@ dependencies: | |
- xeus | ||
- CppInterOp>=1.3.0 | ||
- cpp-argparse | ||
- pugixml | ||
- pugixml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.