{"id":26103669,"url":"https://github.com/aleph-alpha/aleph-alpha-client-rs","last_synced_at":"2025-04-12T18:08:39.129Z","repository":{"id":54114024,"uuid":"450832937","full_name":"Aleph-Alpha/aleph-alpha-client-rs","owner":"Aleph-Alpha","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-08T10:02:57.000Z","size":1602,"stargazers_count":9,"open_issues_count":1,"forks_count":2,"subscribers_count":10,"default_branch":"main","last_synced_at":"2025-04-12T18:08:13.322Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Aleph-Alpha.png","metadata":{"files":{"readme":"README.md","changelog":"Changelog.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2022-01-22T13:59:16.000Z","updated_at":"2025-04-02T15:39:52.000Z","dependencies_parsed_at":"2024-04-09T08:46:54.509Z","dependency_job_id":null,"html_url":"https://github.com/Aleph-Alpha/aleph-alpha-client-rs","commit_stats":{"total_commits":60,"total_committers":1,"mean_commits":60.0,"dds":0.0,"last_synced_commit":"72f0bde8f813c926afeaa2a723f7f76d0698f4e8"},"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aleph-Alpha%2Faleph-alpha-client-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aleph-Alpha%2Faleph-alpha-client-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aleph-Alpha%2Faleph-alpha-client-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aleph-Alpha%2Faleph-alpha-client-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Aleph-Alpha","download_url":"https://codeload.github.com/Aleph-Alpha/aleph-alpha-client-rs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248610340,"owners_count":21132921,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-09T20:41:59.708Z","updated_at":"2025-04-12T18:08:39.122Z","avatar_url":"https://github.com/Aleph-Alpha.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Aleph Alpha API client for Rust\n\nInteract with large language models provided by the Aleph Alpha API in Rust code.\n\n## Usage\n\n```rust\nuse aleph_alpha_client::{Client, TaskCompletion, How, Task};\n\n#[tokio::main]\nfn main() {\n    // Authenticate against API. Fetches token.\n    let client = Client::from_env().unwrap();\n\n    // Name of the model we want to use. Large models give usually better answers, but are also\n    // more costly.\n    let model = \"luminous-base\";\n\n    // The task we want to perform. Here we want to continue the sentence: \"An apple a day ...\"\n    let task = TaskCompletion::from_text(\"An apple a day\").with_maximum_tokens(20);\n\n    // Retrieve the answer from the API\n    let response = client.completion(\u0026task, model, \u0026How::default()).await.unwrap();\n\n    // Print entire sentence with completion\n    println!(\"An apple a day{}\", response.completion);\n}\n```\n\nThis is a **work in progress** currently the Rust client is not a priority on our Roadmap, so expect this client to be\nincomplete. If we work on it expect interfaces to break.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faleph-alpha%2Faleph-alpha-client-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faleph-alpha%2Faleph-alpha-client-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faleph-alpha%2Faleph-alpha-client-rs/lists"}