Programming Tips πŸ’‘
51.5K subscribers
67 photos
10 videos
30 files
354 links
Programming & AI:
Tips πŸ’‘
Articles πŸ“•
Resources πŸ‘Ύ
Design Patterns πŸ’Ž
Software Principles βœ…

πŸ‡³πŸ‡± Contact: @MoienTajik

🎯 Buy ads: https://telega.io/c/ProgrammingTip
Download Telegram
OpenAI .NET πŸ‘Ύ

The OpenAI .NET library provides convenient access to the OpenAI REST API from .NET applications. βœ”οΈ

The full API of this library can be found in the api.md file, and there are many code examples to help. For instance, the following snippet illustrates the basic use of the chat completions API:

ChatClient client = new(model: "gpt-4o", "OPENAI_API_KEY");

ChatCompletion completion = client.CompleteChat("Say 'this is a test.'");

Console.WriteLine($"[ASSISTANT]: {completion}");


The library is organized into several namespaces corresponding to OpenAI feature areas. Each namespace contains a corresponding client class:

β€’ AssistantClient
β€’ AudioClient
β€’ BatchClient
β€’ ChatClient
β€’ EmbeddingClient
β€’ FineTuningClient
β€’ FileClient
β€’ ImageClient
β€’ ModelClient
β€’ ModerationClient
β€’ VectorStoreClient


[ GitHub ] : https://github.com/openai/openai-dotnet

〰️〰️〰️〰️〰️〰️
#AI #OpenAI #DotNet #CSharp
@ProgrammingTip
Please open Telegram to view this post
VIEW IN TELEGRAM
Media is too big
VIEW IN TELEGRAM
πŸš€ OpenAI just dropped Sora 2 β€” and it’s insane.

Every frame of the video you’ll see is fully generated by AI. No cameras, no actors, no sets. Just prompts β†’ video!

[ Blog ] : https://openai.com/index/sora-2

〰️〰️〰️〰️〰️〰️
#AI #OpenAI #Sora
@ProgrammingTip