AI setup instructions (preliminary)

ctrl+c ctrl+v, shortcut not available, but you can do using mouse by opening shortcut window (right click) and use copy ,paste

1 Like

AI assistant "history" window is not really a edit field therefore it doesn't use clipboard.

The prompt edit field (where you enter current prompt) however allows clipboard operations

1 Like

thanks, good to know. Would be great to have a way to copy text from "history" in a future release. I already encountered quite a lot of times where i had to reenter the text from history, even if to make slight modification to a prompt.

1 Like

Had a situation today, where after I asked the AI assistant to create some code, it did, the code gets updated and then the input window went empty (normally I'd see the accept/reject option). I tried it a few times today , restarted Amibroker too .. but no luck. Anyone facing an issue like this?

Please send a screenshot. Normally after restart you should see welcome message from ai assistant.

I've uploaded 2 files. One is right on opening Amibroker - its amibroker_before and the second is after I issued the code fix instructions, it did carry out those instructions and then there is no way for me to accept them. The image/file name is amibroker_after @Tomasz


Most probably the code + response is too long and AI model that you are using terminates output prematurely. Keep in mind that some models are limited to small context windows. To edit large code you need to use model capable of long contexts such as Gemini Pro.

1 Like

Hi, is there a shortcut to get AFL Code Assistant to show? I do not see it anywhere. I do have AB, AQ, and the AFL Code Wizard program and the API key is working.

I actually use Gemini Pro since the beginning. So this might be some thing else? Any other way of debugging?

Open Formula Editor, then use editor’s menu Window->AFL Code Assistant to show the assistant. Assistant is a side panel in the Formula Editor.

The last screenshot looks perfectly normal to me.

What seems to be the problem?

Please follow this advice: How to ask a good question

Hi Tomasz. Thanks for your response. It still shows nothing though.

OK, it looks like you are using AFL Editor in a single frame together with charts. To use AI assistant you would need to change it to use AFL editor in separate frame:

1 Like

Im wondering if Claude Code could be integrated in AFL Assistant.

Claude Code is SEPARATE application for terminal.

I guess you meant Claude Sonnet or Claude Opus LLM models.

Every MODEL that uses either OpenAI or Google API can be integrated.

This means literally EVERYTHING, including Claude Sonnet and Claude Opus can be used as Claude can be used with OpenAI API

So use OpenAI mode and put your API keys in designated field.

perfect , got it, this is not limited to ChatGPT or Gemini. That's good news I will try it. Thanks for your quick reply.

This worked! Thank you!

Hi,
can I write in the Assistant in Spanish or does it have to be in English?
In other words, can I do it like I do in GPT or Gemini in my language, or is it only possible in English?
I'm considering buying an AFL Code Wizard license, but I have this question.

Thank you very much.

That totally depends on LLM that you use. Typically you can write your description in any language and typically you will get the code that has comments in your language but the code itself should be correctly calling functions using their original form in English. If you use Gemini it will work like Gemini.

Anyway, just try it. It won’t bite.