2 ms·
Hi, thank you for checking out the project! The floating windows function processes all callable objects defined in the extensions package as text-handling fun
by MexicanYoda 2y ago
Hi, thank you for checking out the project!
The floating windows function processes all callable objects defined in the extensions package as text-handling functions.
This repository provides the backbone structure that makes it all possible. Users only need to add their custom logic as a Python callable in the format (input_text: str, *kwargs) -> str anywhere within the extensions package!
For example, implementing an OpenAI call is as simple as defining a function like this:
https://github.com/sharingan-no-kakashi/orange-intelligence/blob/main/extensions/openai/init.py https://github.com/sharingan-no-kakashi/orange-intelligence/...
The function should accept a string as input and return a string as output, containing the proper implementation (e.g., HTTP calls, prompts, etc.). It's straightforward and intentionally left minimal.
Everyone is welcome to contribute, add their requirements, and customize the code to fit their specific needs with Orange Intelligence.
- sbarre 2y agoOk so the answer is that these integrations are not implemented, even if the configuration has a field for an OpenAI API key (obviously just as an example). Thank you for clarifying. Good luck with this project! I'll keep an eye on it and see how it evolves.
- MexicanYoda 2y agoThank you! I've just introduced a super simple integration that uses OpenAI to generate jokes based on the <selected text> topic! Of course, it can also be used to create more meaningful content. I’d love to hear your suggestions or feedback on how to make this even more helpful!