Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ public class OutputItemsJsonConverter : global::System.Text.Json.Serialization.J
if (__jsonProps.Contains("id")) __score13++;
if (__jsonProps.Contains("imageB64")) __score13++;
if (__jsonProps.Contains("imageUrl")) __score13++;
if (__jsonProps.Contains("result")) __score13++;
if (__jsonProps.Contains("revisedPrompt")) __score13++;
if (__jsonProps.Contains("status")) __score13++;
if (__jsonProps.Contains("type")) __score13++;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace OpenRouter
public sealed partial class ImageGenerationServerToolConfig
{
/// <summary>
/// Which image generation model to use (e.g. "openai/gpt-image-1"). Defaults to "openai/gpt-image-1".
/// Which image generation model to use (e.g. "openai/gpt-5-image"). Defaults to "openai/gpt-5-image".
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("model")]
public string? Model { get; set; }
Expand All @@ -24,7 +24,7 @@ public sealed partial class ImageGenerationServerToolConfig
/// Initializes a new instance of the <see cref="ImageGenerationServerToolConfig" /> class.
/// </summary>
/// <param name="model">
/// Which image generation model to use (e.g. "openai/gpt-image-1"). Defaults to "openai/gpt-image-1".
/// Which image generation model to use (e.g. "openai/gpt-5-image"). Defaults to "openai/gpt-5-image".
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ public sealed partial class OutputItemsVariant14
[global::System.Text.Json.Serialization.JsonPropertyName("imageUrl")]
public string? ImageUrl { get; set; }

/// <summary>
/// The generated image as a base64-encoded string or URL, matching OpenAI image_generation_call format
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("result")]
public string? Result { get; set; }

/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -61,6 +67,9 @@ public sealed partial class OutputItemsVariant14
/// <param name="id"></param>
/// <param name="imageB64"></param>
/// <param name="imageUrl"></param>
/// <param name="result">
/// The generated image as a base64-encoded string or URL, matching OpenAI image_generation_call format
/// </param>
/// <param name="revisedPrompt"></param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
Expand All @@ -71,12 +80,14 @@ public OutputItemsVariant14(
string? id,
string? imageB64,
string? imageUrl,
string? result,
string? revisedPrompt)
{
this.Type = type;
this.Id = id;
this.ImageB64 = imageB64;
this.ImageUrl = imageUrl;
this.Result = result;
this.RevisedPrompt = revisedPrompt;
this.Status = status;
}
Expand Down
9 changes: 8 additions & 1 deletion src/libs/OpenRouter/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7206,7 +7206,7 @@
"properties": {
"model": {
"type": "string",
"description": "Which image generation model to use (e.g. \"openai/gpt-image-1\"). Defaults to \"openai/gpt-image-1\"."
"description": "Which image generation model to use (e.g. \"openai/gpt-5-image\"). Defaults to \"openai/gpt-5-image\"."
}
},
"description": "Configuration for the openrouter:image_generation server tool. Accepts all image_config params (aspect_ratio, quality, size, background, output_format, output_compression, moderation, etc.) plus a model field.",
Expand Down Expand Up @@ -8992,6 +8992,13 @@
"imageUrl": {
"type": "string"
},
"result": {
"type": [
"string",
"null"
],
"description": "The generated image as a base64-encoded string or URL, matching OpenAI image_generation_call format"
},
"revisedPrompt": {
"type": "string"
},
Expand Down