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:
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
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
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