paralleldrive / sudolang-llm-support

SudoLang LLM Support for VSCode
MIT License
1.07k stars 71 forks source link

How to use with openai API #13

Closed ebudmada closed 9 months ago

ebudmada commented 9 months ago

Thanks for your great work! I like SudoLang it is very useful!

I am trying to integrate SudoLang in a python script. So i am using the openai API. I did'nt find out how to teach gpt-4-1106-preview to stop so that he can receive an input from the terminal. When I use the provided example (teach) , i works well with the gpt-4 chat. But in my openai api , he just stop and wait a little before continuing. I tried a lot of different things and i did not find out how to make it stop the generation so that my python script continue. Can you help me with that?

Thank you, have a nice evening.

ebudmada commented 9 months ago

Ok i put the SudoLang script in the instruction of the assistant, and now it is working! Thank you!