openai/openai-dotnet
Publicmirrored from https://github.com/openai/openai-dotnetAvailable
OpenAI/src/Custom/Chat/Internal/GeneratorStubs.cs
142lines · modecode
| 1 | using Microsoft.TypeSpec.Generator.Customizations; |
| 2 | using System.ClientModel; |
| 3 | |
| 4 | namespace OpenAI.Chat; |
| 5 | |
| 6 | [CodeGenType("ChatCompletionFunctionCallOption")] |
| 7 | internal partial class InternalChatCompletionFunctionCallOption { } |
| 8 | |
| 9 | [CodeGenType("ChatCompletionMessageToolCallChunkType")] |
| 10 | internal readonly partial struct InternalChatCompletionMessageToolCallChunkType { } |
| 11 | |
| 12 | [CodeGenType("ChatCompletionNamedToolChoice")] |
| 13 | internal partial class InternalChatCompletionNamedToolChoice { } |
| 14 | |
| 15 | [CodeGenType("ChatCompletionNamedToolChoiceFunction")] |
| 16 | internal partial class InternalChatCompletionNamedToolChoiceFunction { } |
| 17 | |
| 18 | [CodeGenType("ChatCompletionNamedToolChoiceType")] |
| 19 | internal readonly partial struct InternalChatCompletionNamedToolChoiceType { } |
| 20 | |
| 21 | [CodeGenType("ChatCompletionRequestMessageContentPartImage")] |
| 22 | internal partial class InternalChatCompletionRequestMessageContentPartImage { } |
| 23 | |
| 24 | [CodeGenType("ChatCompletionRequestMessageContentPartText")] |
| 25 | internal partial class InternalChatCompletionRequestMessageContentPartText { } |
| 26 | |
| 27 | [CodeGenType("ChatCompletionResponseMessageFunctionCall")] |
| 28 | internal partial class InternalChatCompletionResponseMessageFunctionCall { } |
| 29 | |
| 30 | [CodeGenType("ChatCompletionResponseMessageRole")] |
| 31 | internal readonly partial struct InternalChatCompletionResponseMessageRole { } |
| 32 | |
| 33 | [CodeGenType("ChatCompletionStreamOptions")] |
| 34 | internal partial class InternalChatCompletionStreamOptions { } |
| 35 | |
| 36 | [CodeGenType("CreateChatCompletionFunctionResponse")] |
| 37 | internal partial class InternalCreateChatCompletionFunctionResponse { } |
| 38 | |
| 39 | [CodeGenType("CreateChatCompletionFunctionResponseChoice")] |
| 40 | internal partial class InternalCreateChatCompletionFunctionResponseChoice { } |
| 41 | |
| 42 | [CodeGenType("CreateChatCompletionFunctionResponseChoiceFinishReason")] |
| 43 | internal readonly partial struct InternalCreateChatCompletionFunctionResponseChoiceFinishReason { } |
| 44 | |
| 45 | [CodeGenType("CreateChatCompletionFunctionResponseObject")] |
| 46 | internal readonly partial struct InternalCreateChatCompletionFunctionResponseObject { } |
| 47 | |
| 48 | [CodeGenType("ChatCompletionRequestMessageContentPartRefusal")] |
| 49 | internal partial class InternalChatCompletionRequestMessageContentPartRefusal { } |
| 50 | |
| 51 | [CodeGenType("CreateChatCompletionRequestModel")] |
| 52 | internal readonly partial struct InternalCreateChatCompletionRequestModel { } |
| 53 | |
| 54 | [CodeGenType("UpdateChatCompletionRequest")] |
| 55 | internal partial class InternalUpdateChatCompletionRequest |
| 56 | { |
| 57 | public static implicit operator BinaryContent(InternalUpdateChatCompletionRequest internalUpdateChatCompletionRequest) |
| 58 | { |
| 59 | if (internalUpdateChatCompletionRequest == null) |
| 60 | { |
| 61 | return null; |
| 62 | } |
| 63 | return BinaryContent.Create(internalUpdateChatCompletionRequest, ModelSerializationExtensions.WireOptions); |
| 64 | } |
| 65 | } |
| 66 | |
| 67 | [CodeGenType("CreateChatCompletionRequestToolChoice")] |
| 68 | internal readonly partial struct InternalCreateChatCompletionRequestToolChoice { } |
| 69 | |
| 70 | [CodeGenType("CreateChatCompletionResponseChoice")] |
| 71 | internal partial class InternalCreateChatCompletionResponseChoice { } |
| 72 | |
| 73 | [CodeGenType("CreateChatCompletionResponseChoiceLogprobs1")] |
| 74 | internal partial class InternalCreateChatCompletionResponseChoiceLogprobs { } |
| 75 | |
| 76 | [CodeGenType("CreateChatCompletionResponseObject")] |
| 77 | internal readonly partial struct InternalCreateChatCompletionResponseObject { } |
| 78 | |
| 79 | [CodeGenType("CreateChatCompletionResponseServiceTier")] |
| 80 | internal readonly partial struct InternalCreateChatCompletionResponseServiceTier { } |
| 81 | |
| 82 | [CodeGenType("CreateChatCompletionStreamResponseChoiceFinishReason")] |
| 83 | internal readonly partial struct InternalCreateChatCompletionStreamResponseChoiceFinishReason { } |
| 84 | |
| 85 | [CodeGenType("CreateChatCompletionStreamResponseChoiceLogprobs1")] |
| 86 | internal partial class InternalCreateChatCompletionStreamResponseChoiceLogprobs { } |
| 87 | |
| 88 | [CodeGenType("CreateChatCompletionStreamResponseObject")] |
| 89 | internal readonly partial struct InternalCreateChatCompletionStreamResponseObject { } |
| 90 | |
| 91 | [CodeGenType("CreateChatCompletionStreamResponseServiceTier")] |
| 92 | internal readonly partial struct InternalCreateChatCompletionStreamResponseServiceTier { } |
| 93 | |
| 94 | [CodeGenType("CreateChatCompletionStreamResponseUsage")] |
| 95 | internal partial class InternalCreateChatCompletionStreamResponseUsage { } |
| 96 | |
| 97 | [CodeGenType("CreateChatCompletionRequestModality")] |
| 98 | internal readonly partial struct InternalCreateChatCompletionRequestModality { } |
| 99 | |
| 100 | [CodeGenType("ChatCompletionRequestMessageContentPartAudio")] |
| 101 | internal partial class InternalChatCompletionRequestMessageContentPartAudio { } |
| 102 | |
| 103 | [CodeGenType("ChatCompletionRequestMessageContentPartAudioInputAudio")] |
| 104 | internal partial class InternalChatCompletionRequestMessageContentPartAudioInputAudio { } |
| 105 | |
| 106 | [CodeGenType("ChatOutputPredictionType")] |
| 107 | internal readonly partial struct InternalChatOutputPredictionKind { } |
| 108 | |
| 109 | [CodeGenType("UnknownChatOutputPrediction")] |
| 110 | internal partial class InternalUnknownChatOutputPrediction { } |
| 111 | |
| 112 | [CodeGenType("CreateChatCompletionRequestWebSearchOptionsUserLocation1Type")] |
| 113 | internal readonly partial struct InternalCreateChatCompletionRequestWebSearchOptionsUserLocation1Type { } |
| 114 | |
| 115 | [CodeGenType("ChatCompletionResponseMessageAnnotationType")] |
| 116 | internal readonly partial struct InternalChatCompletionResponseMessageAnnotationType { } |
| 117 | |
| 118 | [CodeGenType("ChatCompletionRequestMessageContentPartFile")] |
| 119 | internal partial class InternalChatCompletionRequestMessageContentPartFile { } |
| 120 | |
| 121 | [CodeGenType("CreateChatCompletionRequestWebSearchOptionsUserLocation1")] |
| 122 | internal partial class InternalCreateChatCompletionRequestWebSearchOptionsUserLocation1 { } |
| 123 | |
| 124 | [CodeGenType("ChatCompletionResponseMessageAnnotationUrlCitation")] |
| 125 | internal partial class InternalChatCompletionResponseMessageAnnotationUrlCitation { } |
| 126 | |
| 127 | [CodeGenType("DotNetChatResponseFormatJsonSchemaJsonSchema")] |
| 128 | internal partial class InternalDotNetChatResponseFormatJsonSchemaJsonSchema { } |
| 129 | |
| 130 | [CodeGenType("UnknownChatCompletionRequestMessageContentPart")] |
| 131 | internal partial class InternalUnknownChatCompletionRequestMessageContentPart { } |
| 132 | |
| 133 | [CodeGenType("ChatCompletionListObject")] internal readonly partial struct InternalChatCompletionListObject {} |
| 134 | [CodeGenType("ChatCompletionDeletedObject")] internal readonly partial struct InternalChatCompletionDeletedObject {} |
| 135 | [CodeGenType("ChatCompletionMessageListObject")] internal readonly partial struct InternalChatCompletionMessageListObject {} |
| 136 | [CodeGenType("ChatCompletionList")] internal partial class InternalChatCompletionList {} |
| 137 | [CodeGenType("ChatCompletionMessageList")] internal partial class InternalChatCompletionMessageList {} |
| 138 | [CodeGenType("ChatModelIds")] internal readonly partial struct InternalChatModelIds { } |
| 139 | [CodeGenType("ChatError")] internal partial class InternalChatError {} |
| 140 | [CodeGenType("ChatErrorResponse")] internal partial class InternalChatErrorResponse {} |
| 141 | [CodeGenType("DotNetChatResponseFormatType")] internal readonly partial struct InternalDotNetChatResponseFormatType {} |
| 142 | [CodeGenType("CreateChatCompletionRequestToolChoiceFunction")] internal partial class InternalCreateChatCompletionRequestToolChoiceFunction {} |
| 143 | |