Skip to content

Commit

Permalink
feat: Updated OpenAPI spec
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Aug 11, 2024
1 parent b0e989d commit 3714efa
Show file tree
Hide file tree
Showing 260 changed files with 2,843 additions and 2,950 deletions.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
namespace OpenApiGenerator.JsonConverters
{
/// <inheritdoc />
public sealed class CreateAssistantRequestToolResourcesFileSearchVectorStoresChunkingStrategyTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoresChunkingStrategyType>
public sealed class CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1Type>
{
/// <inheritdoc />
public override global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoresChunkingStrategyType Read(
public override global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1Type Read(
ref global::System.Text.Json.Utf8JsonReader reader,
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
Expand All @@ -18,15 +18,15 @@ public sealed class CreateAssistantRequestToolResourcesFileSearchVectorStoresChu
var stringValue = reader.GetString();
if (stringValue != null)
{
return global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoresChunkingStrategyTypeExtensions.ToEnum(stringValue) ?? default;
return global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1TypeExtensions.ToEnum(stringValue) ?? default;
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
{
var numValue = reader.GetInt32();
return (global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoresChunkingStrategyType)numValue;
return (global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1Type)numValue;
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
Expand All @@ -38,12 +38,12 @@ public sealed class CreateAssistantRequestToolResourcesFileSearchVectorStoresChu
/// <inheritdoc />
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoresChunkingStrategyType value,
global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1Type value,
global::System.Text.Json.JsonSerializerOptions options)
{
writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));

writer.WriteStringValue(global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoresChunkingStrategyTypeExtensions.ToValueString(value));
writer.WriteStringValue(global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1TypeExtensions.ToValueString(value));
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
namespace OpenApiGenerator.JsonConverters
{
/// <inheritdoc />
public sealed class CreateAssistantRequestToolResourcesFileSearchVectorStoresChunkingStrategyTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoresChunkingStrategyType?>
public sealed class CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1Type?>
{
/// <inheritdoc />
public override global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoresChunkingStrategyType? Read(
public override global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1Type? Read(
ref global::System.Text.Json.Utf8JsonReader reader,
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
Expand All @@ -18,15 +18,15 @@ public sealed class CreateAssistantRequestToolResourcesFileSearchVectorStoresChu
var stringValue = reader.GetString();
if (stringValue != null)
{
return global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoresChunkingStrategyTypeExtensions.ToEnum(stringValue);
return global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1TypeExtensions.ToEnum(stringValue);
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
{
var numValue = reader.GetInt32();
return (global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoresChunkingStrategyType)numValue;
return (global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1Type)numValue;
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
Expand All @@ -38,7 +38,7 @@ public sealed class CreateAssistantRequestToolResourcesFileSearchVectorStoresChu
/// <inheritdoc />
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoresChunkingStrategyType? value,
global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1Type? value,
global::System.Text.Json.JsonSerializerOptions options)
{
writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
Expand All @@ -49,7 +49,7 @@ public override void Write(
}
else
{
writer.WriteStringValue(global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoresChunkingStrategyTypeExtensions.ToValueString(value.Value));
writer.WriteStringValue(global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1TypeExtensions.ToValueString(value.Value));
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
namespace OpenApiGenerator.JsonConverters
{
/// <inheritdoc />
public sealed class CreateAssistantRequestResponseFormatJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::OpenAI.CreateAssistantRequestResponseFormat>
public sealed class CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2Type>
{
/// <inheritdoc />
public override global::OpenAI.CreateAssistantRequestResponseFormat Read(
public override global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2Type Read(
ref global::System.Text.Json.Utf8JsonReader reader,
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
Expand All @@ -18,15 +18,15 @@ public sealed class CreateAssistantRequestResponseFormatJsonConverter : global::
var stringValue = reader.GetString();
if (stringValue != null)
{
return global::OpenAI.CreateAssistantRequestResponseFormatExtensions.ToEnum(stringValue) ?? default;
return global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2TypeExtensions.ToEnum(stringValue) ?? default;
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
{
var numValue = reader.GetInt32();
return (global::OpenAI.CreateAssistantRequestResponseFormat)numValue;
return (global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2Type)numValue;
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
Expand All @@ -38,12 +38,12 @@ public sealed class CreateAssistantRequestResponseFormatJsonConverter : global::
/// <inheritdoc />
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
global::OpenAI.CreateAssistantRequestResponseFormat value,
global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2Type value,
global::System.Text.Json.JsonSerializerOptions options)
{
writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));

writer.WriteStringValue(global::OpenAI.CreateAssistantRequestResponseFormatExtensions.ToValueString(value));
writer.WriteStringValue(global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2TypeExtensions.ToValueString(value));
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
namespace OpenApiGenerator.JsonConverters
{
/// <inheritdoc />
public sealed class CreateAssistantRequestResponseFormatNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::OpenAI.CreateAssistantRequestResponseFormat?>
public sealed class CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2Type?>
{
/// <inheritdoc />
public override global::OpenAI.CreateAssistantRequestResponseFormat? Read(
public override global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2Type? Read(
ref global::System.Text.Json.Utf8JsonReader reader,
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
Expand All @@ -18,15 +18,15 @@ public sealed class CreateAssistantRequestResponseFormatNullableJsonConverter :
var stringValue = reader.GetString();
if (stringValue != null)
{
return global::OpenAI.CreateAssistantRequestResponseFormatExtensions.ToEnum(stringValue);
return global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2TypeExtensions.ToEnum(stringValue);
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
{
var numValue = reader.GetInt32();
return (global::OpenAI.CreateAssistantRequestResponseFormat)numValue;
return (global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2Type)numValue;
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
Expand All @@ -38,7 +38,7 @@ public sealed class CreateAssistantRequestResponseFormatNullableJsonConverter :
/// <inheritdoc />
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
global::OpenAI.CreateAssistantRequestResponseFormat? value,
global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2Type? value,
global::System.Text.Json.JsonSerializerOptions options)
{
writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
Expand All @@ -49,7 +49,7 @@ public override void Write(
}
else
{
writer.WriteStringValue(global::OpenAI.CreateAssistantRequestResponseFormatExtensions.ToValueString(value.Value));
writer.WriteStringValue(global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2TypeExtensions.ToValueString(value.Value));
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
namespace OpenApiGenerator.JsonConverters
{
/// <inheritdoc />
public sealed class CreateChatCompletionFunctionResponseChoicesFinishReasonJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::OpenAI.CreateChatCompletionFunctionResponseChoicesFinishReason>
public sealed class CreateChatCompletionFunctionResponseChoiceFinishReasonJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::OpenAI.CreateChatCompletionFunctionResponseChoiceFinishReason>
{
/// <inheritdoc />
public override global::OpenAI.CreateChatCompletionFunctionResponseChoicesFinishReason Read(
public override global::OpenAI.CreateChatCompletionFunctionResponseChoiceFinishReason Read(
ref global::System.Text.Json.Utf8JsonReader reader,
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
Expand All @@ -18,15 +18,15 @@ public sealed class CreateChatCompletionFunctionResponseChoicesFinishReasonJsonC
var stringValue = reader.GetString();
if (stringValue != null)
{
return global::OpenAI.CreateChatCompletionFunctionResponseChoicesFinishReasonExtensions.ToEnum(stringValue) ?? default;
return global::OpenAI.CreateChatCompletionFunctionResponseChoiceFinishReasonExtensions.ToEnum(stringValue) ?? default;
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
{
var numValue = reader.GetInt32();
return (global::OpenAI.CreateChatCompletionFunctionResponseChoicesFinishReason)numValue;
return (global::OpenAI.CreateChatCompletionFunctionResponseChoiceFinishReason)numValue;
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
Expand All @@ -38,12 +38,12 @@ public sealed class CreateChatCompletionFunctionResponseChoicesFinishReasonJsonC
/// <inheritdoc />
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
global::OpenAI.CreateChatCompletionFunctionResponseChoicesFinishReason value,
global::OpenAI.CreateChatCompletionFunctionResponseChoiceFinishReason value,
global::System.Text.Json.JsonSerializerOptions options)
{
writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));

writer.WriteStringValue(global::OpenAI.CreateChatCompletionFunctionResponseChoicesFinishReasonExtensions.ToValueString(value));
writer.WriteStringValue(global::OpenAI.CreateChatCompletionFunctionResponseChoiceFinishReasonExtensions.ToValueString(value));
}
}
}
Loading

0 comments on commit 3714efa

Please sign in to comment.