Share via


OpenAIKernelBuilderExtensions.AddOpenAIFiles Method

Definition

Caution

Use OpenAI SDK or AzureOpenAI SDK clients for file operations.

[System.Obsolete("Use OpenAI SDK or AzureOpenAI SDK clients for file operations.")]
public static Microsoft.SemanticKernel.IKernelBuilder AddOpenAIFiles (this Microsoft.SemanticKernel.IKernelBuilder builder, string apiKey, string? orgId = default, string? serviceId = default, System.Net.Http.HttpClient? httpClient = default);
[<System.Obsolete("Use OpenAI SDK or AzureOpenAI SDK clients for file operations.")>]
static member AddOpenAIFiles : Microsoft.SemanticKernel.IKernelBuilder * string * string * string * System.Net.Http.HttpClient -> Microsoft.SemanticKernel.IKernelBuilder
<Extension()>
Public Function AddOpenAIFiles (builder As IKernelBuilder, apiKey As String, Optional orgId As String = Nothing, Optional serviceId As String = Nothing, Optional httpClient As HttpClient = Nothing) As IKernelBuilder

Parameters

builder
IKernelBuilder

The IKernelBuilder instance to augment.

orgId
String

OpenAI organization id. This is usually optional unless your account belongs to multiple organizations.

serviceId
String

A local identifier for the given AI service

httpClient
HttpClient

The HttpClient to use with this service.

Returns

The same instance as builder.

Attributes

Applies to