{"id":20740211,"url":"https://github.com/lbkolev/fieri","last_synced_at":"2025-04-24T02:25:24.976Z","repository":{"id":65129715,"uuid":"579142658","full_name":"lbkolev/fieri","owner":"lbkolev","description":"OpenAI SDK","archived":false,"fork":false,"pushed_at":"2023-11-16T22:47:07.000Z","size":2070,"stargazers_count":66,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-09T21:51:38.560Z","etag":null,"topics":["client","openai","sdk"],"latest_commit_sha":null,"homepage":"https://docs.rs/fieri","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/lbkolev.png","metadata":{"files":{"readme":"README.md","changelog":null,"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,"publiccode":null,"codemeta":null}},"created_at":"2022-12-16T19:13:53.000Z","updated_at":"2025-02-09T16:27:09.000Z","dependencies_parsed_at":"2024-11-17T06:29:21.463Z","dependency_job_id":"485dadcb-4763-4b30-808b-66c66d151850","html_url":"https://github.com/lbkolev/fieri","commit_stats":{"total_commits":45,"total_committers":1,"mean_commits":45.0,"dds":0.0,"last_synced_commit":"8377cdcdddfe8846903f6e2ece490341b5057908"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lbkolev%2Ffieri","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lbkolev%2Ffieri/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lbkolev%2Ffieri/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lbkolev%2Ffieri/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lbkolev","download_url":"https://codeload.github.com/lbkolev/fieri/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250546951,"owners_count":21448417,"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":["client","openai","sdk"],"created_at":"2024-11-17T06:27:47.724Z","updated_at":"2025-04-24T02:25:24.954Z","avatar_url":"https://github.com/lbkolev.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n    \u003ca href=\"https://github.com/lbkolev/fieri\"\u003e\n        \u003cimg width=\"1250px\" height=\"120px\" src=\".github/logo.png\"\u003e\n    \u003c/a\u003e\n\u003c/div\u003e\n\n# \u003cp align=\"center\"\u003efieri\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/lbkolev/fieri/blob/master/LICENSE\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/license-MIT-blue.svg\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://crates.io/crates/fieri\"\u003e\n        \u003cimg src=\"https://img.shields.io/crates/v/fieri.svg\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://github.com/lbkolev/fieri/actions?query=workflow%3ACI+branch%3Amaster\"\u003e\n        \u003cimg src=\"https://github.com/lbkolev/fieri/actions/workflows/ci.yml/badge.svg\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://docs.rs/fieri\"\u003e\n        \u003cimg src=\"https://img.shields.io/docsrs/fieri/latest\"\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\n## Overview\n### Unofficial Rust client for OpenAI.\n\nfieri provides an asynchronous Rust interface for interaction with OpenAI, allowing you to easily use OpenAI's state-of-the-art machine learning models in your Rust projects.\n\n## Prerequisites\nBefore you can use the Rust Client for OpenAI, you'll need to sign up for an API key at the OpenAI Developer Portal. Once you've signed up, you'll be able to find your API key in the [API Keys](https://beta.openai.com/account/api-keys) section of the developer portal.\n\n## Installation\nRun `cargo add fieri` in your terminal to add the latest version of the client.\n\n\n## ChatGPT\n```rust\nuse fieri::{\n    chat::{chat, ChatMessageBuilder, ChatParamBuilder},\n    Client, Error,\n};\n\nlet client = Client::new();\nlet message = ChatMessageBuilder::new(\"user\", \"Hello!\").build()?;\nlet param = ChatParamBuilder::new(\"gpt-3.5-turbo\", vec![message]).build()?;\n\nlet resp = chat(\u0026client, \u0026param).await?;\nprintln!(\"{:#?}\", resp);\n```\n\nBy default, the api key and organization are implicitly loaded from environment variables `OPENAI_API_KEY` \u0026 `OPENAI_ORGANIZATION`. It's possible to configure/overwrite them per client, using for example:\n```rust\nuse fieri::Client\n\nlet client = Client::new().api_key(\"\u003ckey\u003e\");\nlet client_with_org = Client::new().organization(\"\u003corganization\u003e\");\n```\n\nMore examples can be found in the [docs](https://docs.rs/fieri).\n\n## Limitations\nNote that the Rust Client for OpenAI is provided as-is, and is not officially supported by OpenAI. While we will do our best to keep the library up-to-date and bug-free, we cannot guarantee that it will always work as expected.\n\nAdditionally, the API has usage limits that may affect your ability to use the models. You can view your current usage and limits in the [Usage](https://beta.openai.com/account/usage) section of your account.\n\n## License\nfieri is provided under the MIT license. See [LICENSE](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flbkolev%2Ffieri","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flbkolev%2Ffieri","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flbkolev%2Ffieri/lists"}