{"id":23983386,"url":"https://github.com/managedcode/together-dotnet","last_synced_at":"2025-10-29T04:46:42.147Z","repository":{"id":271129940,"uuid":"911973977","full_name":"managedcode/together-dotnet","owner":"managedcode","description":"C# SDK for together.ai","archived":false,"fork":false,"pushed_at":"2025-03-01T18:37:56.000Z","size":141,"stargazers_count":1,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-20T09:53:08.681Z","etag":null,"topics":["csharp","dotnet","sdk","together","together-dotnet","togetherai"],"latest_commit_sha":null,"homepage":"https://www.together.ai","language":"C#","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/managedcode.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,"zenodo":null}},"created_at":"2025-01-04T10:57:11.000Z","updated_at":"2025-03-01T18:37:59.000Z","dependencies_parsed_at":"2025-04-24T06:51:02.467Z","dependency_job_id":"ed4efcba-0ca1-4d0d-9996-202f2b0a0719","html_url":"https://github.com/managedcode/together-dotnet","commit_stats":null,"previous_names":["managedcode/together-dotnet"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/managedcode/together-dotnet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/managedcode%2Ftogether-dotnet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/managedcode%2Ftogether-dotnet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/managedcode%2Ftogether-dotnet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/managedcode%2Ftogether-dotnet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/managedcode","download_url":"https://codeload.github.com/managedcode/together-dotnet/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/managedcode%2Ftogether-dotnet/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281563811,"owners_count":26522704,"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","status":"online","status_checked_at":"2025-10-29T02:00:06.901Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["csharp","dotnet","sdk","together","together-dotnet","togetherai"],"created_at":"2025-01-07T12:16:21.321Z","updated_at":"2025-10-29T04:46:42.114Z","avatar_url":"https://github.com/managedcode.png","language":"C#","readme":"# Together .NET SDK\n\n[![.NET](https://github.com/managedcode/Together/actions/workflows/dotnet.yml/badge.svg)](https://github.com/managedcode/Together/actions/workflows/dotnet.yml)\n[![NuGet](https://img.shields.io/nuget/v/ManagedCode.Together.svg)](https://www.nuget.org/packages/ManagedCode.Together)\n[![NuGet](https://img.shields.io/nuget/v/ManagedCode.Together.SemanticKernel.svg)](https://www.nuget.org/packages/ManagedCode.Together.SemanticKernel)\n[![Downloads](https://img.shields.io/nuget/dt/ManagedCode.Together.svg)](https://www.nuget.org/packages/ManagedCode.Together)\n[![License](https://img.shields.io/github/license/managedcode/Together)](https://github.com/managedcode/together-dotnet/blob/main/LICENSE)\n\nUnofficial C# SDK for [Together.ai](https://www.together.ai/) with Semantic Kernel integration.\n\n## Introduction\n\nTogether.ai provides access to the latest open-source AI models through a simple API. This SDK offers:\n\n- 🚀 Easy access to Together.ai's API from .NET applications\n- 🧠 Seamless integration with Microsoft Semantic Kernel\n- 🔧 Chat Completions, Text Generation, Embeddings and Image Generation\n- 🌊 Both synchronous and streaming responses\n- 🛠 Built-in function calling support\n\n## Installation\n\nChoose the package(s) you need:\n\n```sh\n# Core API client\ndotnet add package ManagedCode.Together\n\n# Semantic Kernel integration\ndotnet add package ManagedCode.Together.SemanticKernel\n```\n\n## Usage Examples\n\n### Direct API Usage\n\n```csharp\nusing Together;\n\nvar client = new TogetherClient(\"YOUR_API_KEY\");\nvar response = await client.ChatCompletions.CreateAsync(new ChatCompletionRequest \n{\n    Model = \"mistralai/Mistral-7B-Instruct-v0.1\",\n    Messages = new[] \n    { \n        new ChatCompletionMessage { Role = \"user\", Content = \"Hello!\" } \n    }\n});\n```\n\n### Semantic Kernel Integration\n\n```csharp\nusing Microsoft.SemanticKernel;\nusing Together.SemanticKernel;\n\n// Initialize kernel with multiple Together.ai capabilities\nvar kernel = Kernel.CreateBuilder()\n    .AddTogetherChatCompletion(\n        \"mistralai/Mistral-7B-Instruct-v0.1\", \n        \"YOUR_API_KEY\"\n    )\n    .AddTogetherTextEmbeddingGeneration(\n        \"togethercomputer/m2-bert-80M-2k-retrieval\",\n        \"YOUR_API_KEY\"\n    )\n    .AddTogetherTextToImage(\n        \"stabilityai/stable-diffusion-xl-base-1.0\",\n        \"YOUR_API_KEY\"\n    )\n    .Build();\n\n// Chat completion\nvar chatResult = await kernel.InvokePromptAsync(\"What is quantum computing?\");\n\n// Generate embeddings\nvar embeddingService = kernel.GetRequiredService\u003cITextEmbeddingGenerationService\u003e();\nvar embeddings = await embeddingService.GenerateEmbeddingsAsync(\n    [\"What is quantum computing?\"]\n);\n\n// Generate images\nvar imageService = kernel.GetRequiredService\u003cITextToImageService\u003e();\nvar images = await imageService.GetImageContentsAsync(\n    \"A cat playing piano\",\n    new TogetherTextToImageExecutionSettings \n    {\n        Height = 512,\n        Width = 512\n    }\n);\n```\n\n## 📚 Documentation\n\nFor more information about available models and features, visit\nthe [Together.ai Documentation](https://docs.together.ai/)\n\n## 💪 Contributing\n\nContributions are welcome! Feel free to:\n\n- Open issues for bugs or feature requests\n- Submit pull requests\n- Improve documentation\n\n## 📄 License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n## ⭐ Support\n\nIf you find this project useful, please give it a star on GitHub!\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanagedcode%2Ftogether-dotnet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmanagedcode%2Ftogether-dotnet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanagedcode%2Ftogether-dotnet/lists"}