Skip to content

aleph-lang/aleph_openwebui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Aleph Open WebUI Code Translator

An experimental library for translating source code to different programming languages using a local Open WebUI instance.

Prerequisites

  • Rust installed on your system
  • Open WebUI running locally (open-webui.github.io)
  • An Open WebUI API key (generated from your instance settings)

Installation

cargo add aleph_openwebui

Usage

From a file

cargo run --example basic <source_file_path> <target_language>

Example

cargo run --example basic test/dataset/syracuse.ml java

From a string

let result = aleph_openwebui::translate_code_from_string("fn add(a, b) { a + b }", "Python");

Configuration

Variable Default Description
OPENWEBUI_API_KEY (required) Your Open WebUI API key
OPENWEBUI_MODEL llama3.3 Model to use (must be available in your instance)
OPENWEBUI_URL http://localhost:3000/api/chat/completions Open WebUI endpoint

Limitations

  • Translation quality depends on the model used
  • Some language-specific concepts may not have direct equivalents in the target language
  • The tool is experimental and may require manual adjustments of generated code

Contributing

Contributions are welcome! Feel free to open an issue or submit a pull request.

About

Aleph openwebui Code Translator.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors