diff --git a/src/libs/Directory.Build.props b/src/libs/Directory.Build.props index 5a180c87c4..d91212cc8f 100644 --- a/src/libs/Directory.Build.props +++ b/src/libs/Directory.Build.props @@ -39,7 +39,7 @@ - 0.6.5 + 0.6.6 0.1 v dev diff --git a/src/libs/OpenApiGenerator.Core/Generation/Sources.Methods.cs b/src/libs/OpenApiGenerator.Core/Generation/Sources.Methods.cs index fa9d513fb0..63071b657a 100644 --- a/src/libs/OpenApiGenerator.Core/Generation/Sources.Methods.cs +++ b/src/libs/OpenApiGenerator.Core/Generation/Sources.Methods.cs @@ -118,7 +118,7 @@ public static string GenerateMethod( }};").Inject() : " ")} using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.{endPoint.HttpMethod:G}, - requestUri: {endPoint.Path}); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + {endPoint.Path}, global::System.UriKind.RelativeOrAbsolute)); {(string.IsNullOrWhiteSpace(endPoint.RequestType) ? " " : $@" httpRequest.Content = new global::System.Net.Http.StringContent( content: {jsonSerializer.GenerateSerializeCall(endPoint.RequestType, endPoint.JsonSerializerContext)}, diff --git a/src/tests/OpenApiGenerator.IntegrationTests.Data/Resources/ollama-curated.yaml b/src/tests/OpenApiGenerator.IntegrationTests.Data/Resources/ollama-curated.yaml new file mode 100644 index 0000000000..c0ee81815a --- /dev/null +++ b/src/tests/OpenApiGenerator.IntegrationTests.Data/Resources/ollama-curated.yaml @@ -0,0 +1,799 @@ +openapi: 3.0.3 + +info: + title: Ollama API + description: API Spec for Ollama API. Please see https://github.com/jmorganca/ollama/blob/main/docs/api.md for more details. + version: 0.1.9 + +servers: + - url: http://localhost:11434/api + description: Ollama server URL + +tags: + - name: Completions + description: Given a prompt, the model will generate a completion. + - name: Chat + description: Given a list of messages comprising a conversation, the model will return a response. + - name: Embeddings + description: Get a vector representation of a given input. + - name: Models + description: List and describe the various models available. + +paths: + /generate: + post: + operationId: generateCompletion + tags: + - Completions + summary: Generate a response for a given prompt with a provided model. + description: The final response object will include statistics and additional data from the request. + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/GenerateCompletionRequest' + responses: + '200': + description: Successful operation. + content: + application/x-ndjson: + schema: + $ref: '#/components/schemas/GenerateCompletionResponse' + /chat: + post: + operationId: generateChatCompletion + tags: + - Chat + summary: Generate the next message in a chat with a provided model. + description: This is a streaming endpoint, so there will be a series of responses. The final response object will include statistics and additional data from the request. + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/GenerateChatCompletionRequest' + responses: + '200': + description: Successful operation. + content: + application/x-ndjson: + schema: + $ref: '#/components/schemas/GenerateChatCompletionResponse' + /embeddings: + post: + operationId: generateEmbedding + tags: + - Embeddings + summary: Generate embeddings from a model. + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/GenerateEmbeddingRequest' + responses: + '200': + description: Successful operation. + content: + application/json: + schema: + $ref: '#/components/schemas/GenerateEmbeddingResponse' + /create: + post: + operationId: createModel + tags: + - Models + summary: Create a model from a Modelfile. + description: It is recommended to set `modelfile` to the content of the Modelfile rather than just set `path`. This is a requirement for remote create. Remote model creation should also create any file blobs, fields such as `FROM` and `ADAPTER`, explicitly with the server using Create a Blob and the value to the path indicated in the response. + requestBody: + description: Create a new model from a Modelfile. + content: + application/json: + schema: + $ref: '#/components/schemas/CreateModelRequest' + responses: + '200': + description: Successful operation. + content: + application/x-ndjson: + schema: + $ref: '#/components/schemas/CreateModelResponse' + /tags: + get: + operationId: listModels + tags: + - Models + summary: List models that are available locally. + responses: + '200': + description: Successful operation. + content: + application/json: + schema: + $ref: '#/components/schemas/ModelsResponse' + /show: + post: + operationId: showModelInfo + tags: + - Models + summary: Show details about a model including modelfile, template, parameters, license, and system prompt. + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ModelInfoRequest' + responses: + '200': + description: Successful operation. + content: + application/json: + schema: + $ref: '#/components/schemas/ModelInfo' + /copy: + post: + operationId: copyModel + tags: + - Models + summary: Creates a model with another name from an existing model. + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CopyModelRequest' + responses: + '200': + description: Successful operation. + /delete: + delete: + operationId: deleteModel + tags: + - Models + summary: Delete a model and its data. + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DeleteModelRequest' + responses: + '200': + description: Successful operation. + /pull: + post: + operationId: pullModel + tags: + - Models + summary: Download a model from the ollama library. + description: Cancelled pulls are resumed from where they left off, and multiple calls will share the same download progress. + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PullModelRequest' + responses: + '200': + description: Successful operation. + content: + application/json: + schema: + $ref: '#/components/schemas/PullModelResponse' + /push: + post: + operationId: pushModel + tags: + - Models + summary: Upload a model to a model library. + description: Requires registering for ollama.ai and adding a public key first. + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PushModelRequest' + responses: + '200': + description: Successful operation. + content: + application/json: + schema: + $ref: '#/components/schemas/PushModelResponse' + +components: + schemas: + GenerateCompletionRequest: + type: object + description: Request class for the generate endpoint. + properties: + model: + type: string + description: &model_name | + The model name. + + Model names follow a `model:tag` format. Some examples are `orca-mini:3b-q4_1` and `llama2:70b`. The tag is optional and, if not provided, will default to `latest`. The tag is used to identify a specific version. + example: llama2:7b + prompt: + type: string + description: The prompt to generate a response. + example: Why is the sky blue? + images: + type: array + description: (optional) a list of Base64-encoded images to include in the message (for multimodal models such as llava) + items: + type: string + description: Base64-encoded image (for multimodal models such as llava) + example: iVBORw0KGgoAAAANSUhEUgAAAAkAAAANCAIAAAD0YtNRAAAABnRSTlMA/AD+APzoM1ogAAAAWklEQVR4AWP48+8PLkR7uUdzcMvtU8EhdykHKAciEXL3pvw5FQIURaBDJkARoDhY3zEXiCgCHbNBmAlUiyaBkENoxZSDWnOtBmoAQu7TnT+3WuDOA7KBIkAGAGwiNeqjusp/AAAAAElFTkSuQmCC + system: + type: string + description: The system prompt to (overrides what is defined in the Modelfile). + template: + type: string + description: The full prompt or prompt template (overrides what is defined in the Modelfile). + context: + type: array + description: The context parameter returned from a previous request to [generateCompletion], this can be used to keep a short conversational memory. + items: + type: integer + options: + $ref: '#/components/schemas/RequestOptions' + format: + $ref: '#/components/schemas/ResponseFormat' + raw: + type: boolean + description: | + If `true` no formatting will be applied to the prompt and no context will be returned. + + You may choose to use the `raw` parameter if you are specifying a full templated prompt in your request to the API, and are managing history yourself. + stream: + type: boolean + description: &stream | + If `false` the response will be returned as a single response object, otherwise the response will be streamed as a series of objects. + default: false + keep_alive: + type: integer + description: &keep_alive | + How long (in minutes) to keep the model loaded in memory. + + - If set to a positive duration (e.g. 20), the model will stay loaded for the provided duration. + - If set to a negative duration (e.g. -1), the model will stay loaded indefinitely. + - If set to 0, the model will be unloaded immediately once finished. + - If not set, the model will stay loaded for 5 minutes by default + required: + - model + - prompt + RequestOptions: + type: object + description: Additional model parameters listed in the documentation for the Modelfile such as `temperature`. + properties: + num_keep: + type: integer + description: | + Number of tokens to keep from the prompt. + seed: + type: integer + description: | + Sets the random number seed to use for generation. Setting this to a specific number will make the model generate the same text for the same prompt. (Default: 0) + num_predict: + type: integer + description: | + Maximum number of tokens to predict when generating text. (Default: 128, -1 = infinite generation, -2 = fill context) + top_k: + type: integer + description: | + Reduces the probability of generating nonsense. A higher value (e.g. 100) will give more diverse answers, while a lower value (e.g. 10) will be more conservative. (Default: 40) + top_p: + type: number + format: float + description: | + Works together with top-k. A higher value (e.g., 0.95) will lead to more diverse text, while a lower value (e.g., 0.5) will generate more focused and conservative text. (Default: 0.9) + tfs_z: + type: number + format: float + description: | + Tail free sampling is used to reduce the impact of less probable tokens from the output. A higher value (e.g., 2.0) will reduce the impact more, while a value of 1.0 disables this setting. (default: 1) + typical_p: + type: number + format: float + description: | + Typical p is used to reduce the impact of less probable tokens from the output. + repeat_last_n: + type: integer + description: | + Sets how far back for the model to look back to prevent repetition. (Default: 64, 0 = disabled, -1 = num_ctx) + temperature: + type: number + format: float + description: | + The temperature of the model. Increasing the temperature will make the model answer more creatively. (Default: 0.8) + repeat_penalty: + type: number + format: float + description: | + Sets how strongly to penalize repetitions. A higher value (e.g., 1.5) will penalize repetitions more strongly, while a lower value (e.g., 0.9) will be more lenient. (Default: 1.1) + presence_penalty: + type: number + format: float + description: | + Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics. + frequency_penalty: + type: number + format: float + description: | + Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim. + mirostat: + type: integer + description: | + Enable Mirostat sampling for controlling perplexity. (default: 0, 0 = disabled, 1 = Mirostat, 2 = Mirostat 2.0) + mirostat_tau: + type: number + format: float + description: | + Controls the balance between coherence and diversity of the output. A lower value will result in more focused and coherent text. (Default: 5.0) + mirostat_eta: + type: number + format: float + description: | + Influences how quickly the algorithm responds to feedback from the generated text. A lower learning rate will result in slower adjustments, while a higher learning rate will make the algorithm more responsive. (Default: 0.1) + penalize_newline: + type: boolean + description: | + Penalize newlines in the output. (Default: false) + stop: + type: array + description: Sequences where the API will stop generating further tokens. The returned text will not contain the stop sequence. + items: + type: string + numa: + type: boolean + description: | + Enable NUMA support. (Default: false) + num_ctx: + type: integer + description: | + Sets the size of the context window used to generate the next token. + num_batch: + type: integer + description: | + Sets the number of batches to use for generation. (Default: 1) + num_gqa: + type: integer + description: | + The number of GQA groups in the transformer layer. Required for some models, for example it is 8 for `llama2:70b`. + num_gpu: + type: integer + description: | + The number of layers to send to the GPU(s). On macOS it defaults to 1 to enable metal support, 0 to disable. + main_gpu: + type: integer + description: | + The GPU to use for the main model. Default is 0. + low_vram: + type: boolean + description: | + Enable low VRAM mode. (Default: false) + f16_kv: + type: boolean + description: | + Enable f16 key/value. (Default: false) + logits_all: + type: boolean + description: | + Enable logits all. (Default: false) + vocab_only: + type: boolean + description: | + Enable vocab only. (Default: false) + use_mmap: + type: boolean + description: | + Enable mmap. (Default: false) + use_mlock: + type: boolean + description: | + Enable mlock. (Default: false) + embedding_only: + type: boolean + description: | + Enable embedding only. (Default: false) + rope_frequency_base: + type: number + format: float + description: | + The base of the rope frequency scale. (Default: 1.0) + rope_frequency_scale: + type: number + format: float + description: | + The scale of the rope frequency. (Default: 1.0) + num_thread: + type: integer + description: | + Sets the number of threads to use during computation. By default, Ollama will detect this for optimal performance. It is recommended to set this value to the number of physical CPU cores your system has (as opposed to the logical number of cores). + ResponseFormat: + type: string + description: | + The format to return a response in. Currently the only accepted value is json. + + Enable JSON mode by setting the format parameter to json. This will structure the response as valid JSON. + + Note: it's important to instruct the model to use JSON in the prompt. Otherwise, the model may generate large amounts whitespace. + enum: + - json + GenerateCompletionResponse: + type: object + description: The response class for the generate endpoint. + properties: + model: + type: string + description: *model_name + example: llama2:7b + created_at: + type: string + format: date-time + description: Date on which a model was created. + example: 2023-08-04T19:22:45.499127Z + response: + type: string + description: The response for a given prompt with a provided model. + example: The sky appears blue because of a phenomenon called Rayleigh scattering. + done: + type: boolean + description: Whether the response has completed. + example: true + context: + type: array + description: | + An encoding of the conversation used in this response, this can be sent in the next request to keep a conversational memory. + items: + type: integer + example: [ 1, 2, 3 ] + total_duration: + type: integer + description: Time spent generating the response. + example: 5589157167 + load_duration: + type: integer + description: Time spent in nanoseconds loading the model. + example: 3013701500 + prompt_eval_count: + type: integer + description: Number of tokens in the prompt. + example: 46 + prompt_eval_duration: + type: integer + description: Time spent in nanoseconds evaluating the prompt. + example: 1160282000 + eval_count: + type: integer + description: Number of tokens the response. + example: 113 + eval_duration: + type: integer + description: Time in nanoseconds spent generating the response. + example: 1325948000 + GenerateChatCompletionRequest: + type: object + description: Request class for the chat endpoint. + properties: + model: + type: string + description: *model_name + example: llama2:7b + messages: + type: array + description: The messages of the chat, this can be used to keep a chat memory + items: + $ref: '#/components/schemas/Message' + format: + $ref: '#/components/schemas/ResponseFormat' + options: + $ref: '#/components/schemas/RequestOptions' + stream: + type: boolean + description: *stream + default: false + keep_alive: + type: integer + description: *keep_alive + required: + - model + - messages + GenerateChatCompletionResponse: + type: object + description: The response class for the chat endpoint. + properties: + message: + $ref: '#/components/schemas/Message' + model: + type: string + description: *model_name + example: llama2:7b + created_at: + type: string + format: date-time + description: Date on which a model was created. + example: 2023-08-04T19:22:45.499127Z + done: + type: boolean + description: Whether the response has completed. + example: true + total_duration: + type: integer + description: Time spent generating the response. + example: 5589157167 + load_duration: + type: integer + description: Time spent in nanoseconds loading the model. + example: 3013701500 + prompt_eval_count: + type: integer + description: Number of tokens in the prompt. + example: 46 + prompt_eval_duration: + type: integer + description: Time spent in nanoseconds evaluating the prompt. + example: 1160282000 + eval_count: + type: integer + description: Number of tokens the response. + example: 113 + eval_duration: + type: integer + description: Time in nanoseconds spent generating the response. + example: 1325948000 + Message: + type: object + description: A message in the chat endpoint + properties: + role: + type: string + description: The role of the message + enum: [ "system", "user", "assistant" ] + content: + type: string + description: The content of the message + example: Why is the sky blue? + images: + type: array + description: (optional) a list of Base64-encoded images to include in the message (for multimodal models such as llava) + items: + type: string + description: Base64-encoded image (for multimodal models such as llava) + example: iVBORw0KGgoAAAANSUhEUgAAAAkAAAANCAIAAAD0YtNRAAAABnRSTlMA/AD+APzoM1ogAAAAWklEQVR4AWP48+8PLkR7uUdzcMvtU8EhdykHKAciEXL3pvw5FQIURaBDJkARoDhY3zEXiCgCHbNBmAlUiyaBkENoxZSDWnOtBmoAQu7TnT+3WuDOA7KBIkAGAGwiNeqjusp/AAAAAElFTkSuQmCC + required: + - role + - content + GenerateEmbeddingRequest: + description: Generate embeddings from a model. + type: object + properties: + model: + type: string + description: *model_name + example: llama2:7b + prompt: + type: string + description: Text to generate embeddings for. + example: 'Here is an article about llamas...' + options: + $ref: '#/components/schemas/RequestOptions' + required: + - model + - prompt + GenerateEmbeddingResponse: + type: object + description: Returns the embedding information. + properties: + embedding: + type: array + description: The embedding for the prompt. + items: + type: number + format: double + example: [ 0.5670403838157654, 0.009260174818336964, ... ] + CreateModelRequest: + type: object + description: Create model request object. + properties: + name: + type: string + description: *model_name + example: mario + modelfile: + type: string + description: The contents of the Modelfile. + example: FROM llama2\nSYSTEM You are mario from Super Mario Bros. + stream: + type: boolean + description: *stream + default: false + required: + - name + - modelfile + CreateModelResponse: + description: Response object for creating a model. When finished, `status` is `success`. + type: object + properties: + status: + $ref: '#/components/schemas/CreateModelStatus' + CreateModelStatus: + type: string + description: Status creating the model + enum: + - creating system layer + - parsing modelfile + - success + ModelsResponse: + description: Response class for the list models endpoint. + type: object + properties: + models: + type: array + description: List of models available locally. + items: + $ref: '#/components/schemas/Model' + Model: + type: object + description: A model available locally. + properties: + name: + type: string + description: *model_name + example: llama2:7b + modified_at: + type: string + format: date-time + description: Model modification date. + example: 2023-08-02T17:02:23.713454393-07:00 + size: + type: integer + description: Size of the model on disk. + example: 7323310500 + ModelInfoRequest: + description: Request class for the show model info endpoint. + type: object + properties: + name: + type: string + description: *model_name + example: llama2:7b + required: + - name + ModelInfo: + description: Details about a model including modelfile, template, parameters, license, and system prompt. + type: object + properties: + license: + type: string + description: The model's license. + example: + modelfile: + type: string + description: The modelfile associated with the model. + example: 'Modelfile generated by \"ollama show\"\n# To build a new Modelfile based on this one, replace the FROM line with:\n# FROM llama2:latest\n\nFROM /Users/username/.ollama/models/blobs/sha256:8daa9615cce30c259a9555b1cc250d461d1bc69980a274b44d7eda0be78076d8\nTEMPLATE \"\"\"[INST] {{ if and .First .System }}<>{{ .System }}<>\n\n{{ end }}{{ .Prompt }} [/INST] \"\"\"\nSYSTEM \"\"\"\"\"\"\nPARAMETER stop [INST]\nPARAMETER stop [/INST]\nPARAMETER stop <>\nPARAMETER stop <>\n"' + parameters: + type: string + description: The model parameters. + example: 'stop [INST]\nstop [/INST]\nstop <>\nstop <>' + template: + type: string + description: The prompt template for the model. + example: '[INST] {{ if and .First .System }}<>{{ .System }}<>\n\n{{ end }}{{ .Prompt }} [/INST]' + CopyModelRequest: + description: Request class for copying a model. + type: object + properties: + source: + type: string + description: Name of the model to copy. + example: llama2:7b + destination: + type: string + description: Name of the new model. + example: llama2-backup + required: + - source + - destination + DeleteModelRequest: + description: Request class for deleting a model. + type: object + properties: + name: + type: string + description: *model_name + example: llama2:13b + required: + - name + PullModelRequest: + description: Request class for pulling a model. + type: object + properties: + name: + type: string + description: *model_name + example: llama2:7b + insecure: + type: boolean + description: | + Allow insecure connections to the library. + + Only use this if you are pulling from your own library during development. + default: false + stream: + type: boolean + description: *stream + default: false + required: + - name + PullModelResponse: + description: | + Response class for pulling a model. + + The first object is the manifest. Then there is a series of downloading responses. Until any of the download is completed, the `completed` key may not be included. + + The number of files to be downloaded depends on the number of layers specified in the manifest. + type: object + properties: + status: + $ref: '#/components/schemas/PullModelStatus' + digest: + type: string + description: The model's digest. + example: 'sha256:bc07c81de745696fdf5afca05e065818a8149fb0c77266fb584d9b2cba3711a' + total: + type: integer + description: Total size of the model. + example: 2142590208 + completed: + type: integer + description: Total bytes transferred. + example: 2142590208 + PullModelStatus: + type: string + description: Status pulling the model. + enum: + - pulling manifest + - downloading digestname + - verifying sha256 digest + - writing manifest + - removing any unused layers + - success + example: pulling manifest + PushModelRequest: + description: Request class for pushing a model. + type: object + properties: + name: + type: string + description: The name of the model to push in the form of /:. + example: 'mattw/pygmalion:latest' + insecure: + type: boolean + description: | + Allow insecure connections to the library. + + Only use this if you are pushing to your library during development. + default: false + stream: + type: boolean + description: *stream + default: false + required: + - name + PushModelResponse: + type: object + description: Response class for pushing a model. + properties: + status: + $ref: '#/components/schemas/PushModelStatus' + digest: + type: string + description: the model's digest + example: 'sha256:bc07c81de745696fdf5afca05e065818a8149fb0c77266fb584d9b2cba3711a' + total: + type: integer + description: total size of the model + example: 2142590208 + PushModelStatus: + type: string + description: Status pushing the model. + enum: + - retrieving manifest + - starting upload + - pushing manifest + - success diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/LangSmith/NewtonsoftJson/_#G.Api.EndPoints.Create_run_runs_post.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/LangSmith/NewtonsoftJson/_#G.Api.EndPoints.Create_run_runs_post.g.verified.cs index d1c570f9de..e4ecc64bd7 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/LangSmith/NewtonsoftJson/_#G.Api.EndPoints.Create_run_runs_post.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/LangSmith/NewtonsoftJson/_#G.Api.EndPoints.Create_run_runs_post.g.verified.cs @@ -20,7 +20,7 @@ public partial class Api using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: "/runs"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/runs", global::System.UriKind.RelativeOrAbsolute)); httpRequest.Content = new global::System.Net.Http.StringContent( content: global::Newtonsoft.Json.JsonConvert.SerializeObject(request), encoding: global::System.Text.Encoding.UTF8, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/LangSmith/NewtonsoftJson/_#G.Api.EndPoints.Update_run_runs__run_id__patch.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/LangSmith/NewtonsoftJson/_#G.Api.EndPoints.Update_run_runs__run_id__patch.g.verified.cs index f7995874bf..130cddd950 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/LangSmith/NewtonsoftJson/_#G.Api.EndPoints.Update_run_runs__run_id__patch.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/LangSmith/NewtonsoftJson/_#G.Api.EndPoints.Update_run_runs__run_id__patch.g.verified.cs @@ -22,7 +22,7 @@ public partial class Api using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Patch, - requestUri: $"/runs/{runId}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/runs/{runId}", global::System.UriKind.RelativeOrAbsolute)); httpRequest.Content = new global::System.Net.Http.StringContent( content: global::Newtonsoft.Json.JsonConvert.SerializeObject(request), encoding: global::System.Text.Encoding.UTF8, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Api.EndPoints.Create_run_runs_post.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Api.EndPoints.Create_run_runs_post.g.verified.cs index 8684718c6b..3c56d5c053 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Api.EndPoints.Create_run_runs_post.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Api.EndPoints.Create_run_runs_post.g.verified.cs @@ -20,7 +20,7 @@ public partial class Api using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: "/runs"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/runs", global::System.UriKind.RelativeOrAbsolute)); httpRequest.Content = new global::System.Net.Http.StringContent( content: global::System.Text.Json.JsonSerializer.Serialize(request), encoding: global::System.Text.Encoding.UTF8, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Api.EndPoints.Update_run_runs__run_id__patch.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Api.EndPoints.Update_run_runs__run_id__patch.g.verified.cs index 1aca06136b..646bea2fe7 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Api.EndPoints.Update_run_runs__run_id__patch.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Api.EndPoints.Update_run_runs__run_id__patch.g.verified.cs @@ -22,7 +22,7 @@ public partial class Api using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Patch, - requestUri: $"/runs/{runId}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/runs/{runId}", global::System.UriKind.RelativeOrAbsolute)); httpRequest.Content = new global::System.Net.Http.StringContent( content: global::System.Text.Json.JsonSerializer.Serialize(request), encoding: global::System.Text.Encoding.UTF8, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/NewtonsoftJson/_#G.Api.EndPoints.CopyModel.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/NewtonsoftJson/_#G.Api.EndPoints.CopyModel.g.verified.cs index b2ae769dca..a6077ba630 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/NewtonsoftJson/_#G.Api.EndPoints.CopyModel.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/NewtonsoftJson/_#G.Api.EndPoints.CopyModel.g.verified.cs @@ -20,7 +20,7 @@ public partial class Api using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: "/copy"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/copy", global::System.UriKind.RelativeOrAbsolute)); httpRequest.Content = new global::System.Net.Http.StringContent( content: global::Newtonsoft.Json.JsonConvert.SerializeObject(request), encoding: global::System.Text.Encoding.UTF8, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/NewtonsoftJson/_#G.Api.EndPoints.CreateModel.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/NewtonsoftJson/_#G.Api.EndPoints.CreateModel.g.verified.cs index 74543c94d7..d3afdf85f5 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/NewtonsoftJson/_#G.Api.EndPoints.CreateModel.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/NewtonsoftJson/_#G.Api.EndPoints.CreateModel.g.verified.cs @@ -20,7 +20,7 @@ public partial class Api using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: "/create"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/create", global::System.UriKind.RelativeOrAbsolute)); httpRequest.Content = new global::System.Net.Http.StringContent( content: global::Newtonsoft.Json.JsonConvert.SerializeObject(request), encoding: global::System.Text.Encoding.UTF8, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/NewtonsoftJson/_#G.Api.EndPoints.DeleteModel.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/NewtonsoftJson/_#G.Api.EndPoints.DeleteModel.g.verified.cs index f99bef8159..9299caf0bb 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/NewtonsoftJson/_#G.Api.EndPoints.DeleteModel.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/NewtonsoftJson/_#G.Api.EndPoints.DeleteModel.g.verified.cs @@ -20,7 +20,7 @@ public partial class Api using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, - requestUri: "/delete"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/delete", global::System.UriKind.RelativeOrAbsolute)); httpRequest.Content = new global::System.Net.Http.StringContent( content: global::Newtonsoft.Json.JsonConvert.SerializeObject(request), encoding: global::System.Text.Encoding.UTF8, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/NewtonsoftJson/_#G.Api.EndPoints.GenerateChatCompletion.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/NewtonsoftJson/_#G.Api.EndPoints.GenerateChatCompletion.g.verified.cs index e95697807e..87d7a864f2 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/NewtonsoftJson/_#G.Api.EndPoints.GenerateChatCompletion.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/NewtonsoftJson/_#G.Api.EndPoints.GenerateChatCompletion.g.verified.cs @@ -20,7 +20,7 @@ public partial class Api using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: "/chat"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/chat", global::System.UriKind.RelativeOrAbsolute)); httpRequest.Content = new global::System.Net.Http.StringContent( content: global::Newtonsoft.Json.JsonConvert.SerializeObject(request), encoding: global::System.Text.Encoding.UTF8, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/NewtonsoftJson/_#G.Api.EndPoints.GenerateCompletion.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/NewtonsoftJson/_#G.Api.EndPoints.GenerateCompletion.g.verified.cs index 4a47854d9c..b07b790c76 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/NewtonsoftJson/_#G.Api.EndPoints.GenerateCompletion.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/NewtonsoftJson/_#G.Api.EndPoints.GenerateCompletion.g.verified.cs @@ -20,7 +20,7 @@ public partial class Api using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: "/generate"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/generate", global::System.UriKind.RelativeOrAbsolute)); httpRequest.Content = new global::System.Net.Http.StringContent( content: global::Newtonsoft.Json.JsonConvert.SerializeObject(request), encoding: global::System.Text.Encoding.UTF8, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/NewtonsoftJson/_#G.Api.EndPoints.GenerateEmbedding.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/NewtonsoftJson/_#G.Api.EndPoints.GenerateEmbedding.g.verified.cs index 12dc053a9f..9c2358961c 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/NewtonsoftJson/_#G.Api.EndPoints.GenerateEmbedding.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/NewtonsoftJson/_#G.Api.EndPoints.GenerateEmbedding.g.verified.cs @@ -20,7 +20,7 @@ public partial class Api using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: "/embeddings"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/embeddings", global::System.UriKind.RelativeOrAbsolute)); httpRequest.Content = new global::System.Net.Http.StringContent( content: global::Newtonsoft.Json.JsonConvert.SerializeObject(request), encoding: global::System.Text.Encoding.UTF8, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/NewtonsoftJson/_#G.Api.EndPoints.ListModels.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/NewtonsoftJson/_#G.Api.EndPoints.ListModels.g.verified.cs index 1b3c1da431..14850de2f1 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/NewtonsoftJson/_#G.Api.EndPoints.ListModels.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/NewtonsoftJson/_#G.Api.EndPoints.ListModels.g.verified.cs @@ -16,7 +16,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: "/tags"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/tags", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/NewtonsoftJson/_#G.Api.EndPoints.PullModel.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/NewtonsoftJson/_#G.Api.EndPoints.PullModel.g.verified.cs index f20a847d26..e87eb3b6b3 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/NewtonsoftJson/_#G.Api.EndPoints.PullModel.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/NewtonsoftJson/_#G.Api.EndPoints.PullModel.g.verified.cs @@ -20,7 +20,7 @@ public partial class Api using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: "/pull"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/pull", global::System.UriKind.RelativeOrAbsolute)); httpRequest.Content = new global::System.Net.Http.StringContent( content: global::Newtonsoft.Json.JsonConvert.SerializeObject(request), encoding: global::System.Text.Encoding.UTF8, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/NewtonsoftJson/_#G.Api.EndPoints.PushModel.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/NewtonsoftJson/_#G.Api.EndPoints.PushModel.g.verified.cs index 3b9131f4cd..62f0c84fd0 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/NewtonsoftJson/_#G.Api.EndPoints.PushModel.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/NewtonsoftJson/_#G.Api.EndPoints.PushModel.g.verified.cs @@ -20,7 +20,7 @@ public partial class Api using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: "/push"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/push", global::System.UriKind.RelativeOrAbsolute)); httpRequest.Content = new global::System.Net.Http.StringContent( content: global::Newtonsoft.Json.JsonConvert.SerializeObject(request), encoding: global::System.Text.Encoding.UTF8, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/NewtonsoftJson/_#G.Api.EndPoints.ShowModelInfo.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/NewtonsoftJson/_#G.Api.EndPoints.ShowModelInfo.g.verified.cs index 635adddbad..a259d97cd9 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/NewtonsoftJson/_#G.Api.EndPoints.ShowModelInfo.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/NewtonsoftJson/_#G.Api.EndPoints.ShowModelInfo.g.verified.cs @@ -20,7 +20,7 @@ public partial class Api using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: "/show"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/show", global::System.UriKind.RelativeOrAbsolute)); httpRequest.Content = new global::System.Net.Http.StringContent( content: global::Newtonsoft.Json.JsonConvert.SerializeObject(request), encoding: global::System.Text.Encoding.UTF8, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/SystemTextJson/_#G.Api.EndPoints.CopyModel.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/SystemTextJson/_#G.Api.EndPoints.CopyModel.g.verified.cs index b25b26479b..61a94da797 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/SystemTextJson/_#G.Api.EndPoints.CopyModel.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/SystemTextJson/_#G.Api.EndPoints.CopyModel.g.verified.cs @@ -20,7 +20,7 @@ public partial class Api using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: "/copy"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/copy", global::System.UriKind.RelativeOrAbsolute)); httpRequest.Content = new global::System.Net.Http.StringContent( content: global::System.Text.Json.JsonSerializer.Serialize(request), encoding: global::System.Text.Encoding.UTF8, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/SystemTextJson/_#G.Api.EndPoints.CreateModel.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/SystemTextJson/_#G.Api.EndPoints.CreateModel.g.verified.cs index 5ffcac1f17..1baa276e2a 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/SystemTextJson/_#G.Api.EndPoints.CreateModel.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/SystemTextJson/_#G.Api.EndPoints.CreateModel.g.verified.cs @@ -20,7 +20,7 @@ public partial class Api using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: "/create"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/create", global::System.UriKind.RelativeOrAbsolute)); httpRequest.Content = new global::System.Net.Http.StringContent( content: global::System.Text.Json.JsonSerializer.Serialize(request), encoding: global::System.Text.Encoding.UTF8, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/SystemTextJson/_#G.Api.EndPoints.DeleteModel.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/SystemTextJson/_#G.Api.EndPoints.DeleteModel.g.verified.cs index 237475cf23..9f5252de25 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/SystemTextJson/_#G.Api.EndPoints.DeleteModel.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/SystemTextJson/_#G.Api.EndPoints.DeleteModel.g.verified.cs @@ -20,7 +20,7 @@ public partial class Api using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, - requestUri: "/delete"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/delete", global::System.UriKind.RelativeOrAbsolute)); httpRequest.Content = new global::System.Net.Http.StringContent( content: global::System.Text.Json.JsonSerializer.Serialize(request), encoding: global::System.Text.Encoding.UTF8, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/SystemTextJson/_#G.Api.EndPoints.GenerateChatCompletion.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/SystemTextJson/_#G.Api.EndPoints.GenerateChatCompletion.g.verified.cs index 9d5fa4e2c2..3bbb0b4028 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/SystemTextJson/_#G.Api.EndPoints.GenerateChatCompletion.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/SystemTextJson/_#G.Api.EndPoints.GenerateChatCompletion.g.verified.cs @@ -20,7 +20,7 @@ public partial class Api using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: "/chat"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/chat", global::System.UriKind.RelativeOrAbsolute)); httpRequest.Content = new global::System.Net.Http.StringContent( content: global::System.Text.Json.JsonSerializer.Serialize(request), encoding: global::System.Text.Encoding.UTF8, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/SystemTextJson/_#G.Api.EndPoints.GenerateCompletion.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/SystemTextJson/_#G.Api.EndPoints.GenerateCompletion.g.verified.cs index 85e2b48053..edbbb0b294 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/SystemTextJson/_#G.Api.EndPoints.GenerateCompletion.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/SystemTextJson/_#G.Api.EndPoints.GenerateCompletion.g.verified.cs @@ -20,7 +20,7 @@ public partial class Api using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: "/generate"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/generate", global::System.UriKind.RelativeOrAbsolute)); httpRequest.Content = new global::System.Net.Http.StringContent( content: global::System.Text.Json.JsonSerializer.Serialize(request), encoding: global::System.Text.Encoding.UTF8, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/SystemTextJson/_#G.Api.EndPoints.GenerateEmbedding.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/SystemTextJson/_#G.Api.EndPoints.GenerateEmbedding.g.verified.cs index 5b76bc4b91..f57a335cf3 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/SystemTextJson/_#G.Api.EndPoints.GenerateEmbedding.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/SystemTextJson/_#G.Api.EndPoints.GenerateEmbedding.g.verified.cs @@ -20,7 +20,7 @@ public partial class Api using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: "/embeddings"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/embeddings", global::System.UriKind.RelativeOrAbsolute)); httpRequest.Content = new global::System.Net.Http.StringContent( content: global::System.Text.Json.JsonSerializer.Serialize(request), encoding: global::System.Text.Encoding.UTF8, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/SystemTextJson/_#G.Api.EndPoints.ListModels.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/SystemTextJson/_#G.Api.EndPoints.ListModels.g.verified.cs index 2378987ec1..a29e7e907a 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/SystemTextJson/_#G.Api.EndPoints.ListModels.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/SystemTextJson/_#G.Api.EndPoints.ListModels.g.verified.cs @@ -16,7 +16,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: "/tags"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/tags", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/SystemTextJson/_#G.Api.EndPoints.PullModel.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/SystemTextJson/_#G.Api.EndPoints.PullModel.g.verified.cs index 08cdfb09cc..428d015acc 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/SystemTextJson/_#G.Api.EndPoints.PullModel.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/SystemTextJson/_#G.Api.EndPoints.PullModel.g.verified.cs @@ -20,7 +20,7 @@ public partial class Api using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: "/pull"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/pull", global::System.UriKind.RelativeOrAbsolute)); httpRequest.Content = new global::System.Net.Http.StringContent( content: global::System.Text.Json.JsonSerializer.Serialize(request), encoding: global::System.Text.Encoding.UTF8, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/SystemTextJson/_#G.Api.EndPoints.PushModel.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/SystemTextJson/_#G.Api.EndPoints.PushModel.g.verified.cs index 3c1eebc81e..a1201c6eca 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/SystemTextJson/_#G.Api.EndPoints.PushModel.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/SystemTextJson/_#G.Api.EndPoints.PushModel.g.verified.cs @@ -20,7 +20,7 @@ public partial class Api using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: "/push"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/push", global::System.UriKind.RelativeOrAbsolute)); httpRequest.Content = new global::System.Net.Http.StringContent( content: global::System.Text.Json.JsonSerializer.Serialize(request), encoding: global::System.Text.Encoding.UTF8, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/SystemTextJson/_#G.Api.EndPoints.ShowModelInfo.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/SystemTextJson/_#G.Api.EndPoints.ShowModelInfo.g.verified.cs index 0bc3b0b8f4..6ff826bb8d 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/SystemTextJson/_#G.Api.EndPoints.ShowModelInfo.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Ollama/SystemTextJson/_#G.Api.EndPoints.ShowModelInfo.g.verified.cs @@ -20,7 +20,7 @@ public partial class Api using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: "/show"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/show", global::System.UriKind.RelativeOrAbsolute)); httpRequest.Content = new global::System.Net.Http.StringContent( content: global::System.Text.Json.JsonSerializer.Serialize(request), encoding: global::System.Text.Encoding.UTF8, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CancelBatch.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CancelBatch.g.verified.cs index 8b5c5a3906..6be42bd2ba 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CancelBatch.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CancelBatch.g.verified.cs @@ -18,7 +18,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: $"/batches/{batchId}/cancel"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/batches/{batchId}/cancel", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CancelFineTuningJob.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CancelFineTuningJob.g.verified.cs index cb84395a06..42bf5bb260 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CancelFineTuningJob.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CancelFineTuningJob.g.verified.cs @@ -18,7 +18,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: $"/fine_tuning/jobs/{fineTuningJobId}/cancel"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/fine_tuning/jobs/{fineTuningJobId}/cancel", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CancelRun.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CancelRun.g.verified.cs index 8dab38b916..22b0cd9ca1 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CancelRun.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CancelRun.g.verified.cs @@ -20,7 +20,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: $"/threads/{threadId}/runs/{runId}/cancel"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/threads/{threadId}/runs/{runId}/cancel", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CancelVectorStoreFileBatch.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CancelVectorStoreFileBatch.g.verified.cs index 5cd9af9cfb..cd0ecbb17a 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CancelVectorStoreFileBatch.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CancelVectorStoreFileBatch.g.verified.cs @@ -20,7 +20,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: $"/vector_stores/{vectorStoreId}/file_batches/{batchId}/cancel"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/vector_stores/{vectorStoreId}/file_batches/{batchId}/cancel", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateAssistant.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateAssistant.g.verified.cs index 7bd40aa0c1..1711999f46 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateAssistant.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateAssistant.g.verified.cs @@ -20,7 +20,7 @@ public partial class Api using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: "/assistants"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/assistants", global::System.UriKind.RelativeOrAbsolute)); httpRequest.Content = new global::System.Net.Http.StringContent( content: global::Newtonsoft.Json.JsonConvert.SerializeObject(request), encoding: global::System.Text.Encoding.UTF8, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateBatch.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateBatch.g.verified.cs index 791a3ce017..0d8cc11eac 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateBatch.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateBatch.g.verified.cs @@ -16,7 +16,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: "/batches"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/batches", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateChatCompletion.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateChatCompletion.g.verified.cs index bad07ef3ff..c71ace8f75 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateChatCompletion.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateChatCompletion.g.verified.cs @@ -20,7 +20,7 @@ public partial class Api using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: "/chat/completions"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/chat/completions", global::System.UriKind.RelativeOrAbsolute)); httpRequest.Content = new global::System.Net.Http.StringContent( content: global::Newtonsoft.Json.JsonConvert.SerializeObject(request), encoding: global::System.Text.Encoding.UTF8, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateCompletion.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateCompletion.g.verified.cs index 0626c30434..738d215771 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateCompletion.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateCompletion.g.verified.cs @@ -20,7 +20,7 @@ public partial class Api using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: "/completions"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/completions", global::System.UriKind.RelativeOrAbsolute)); httpRequest.Content = new global::System.Net.Http.StringContent( content: global::Newtonsoft.Json.JsonConvert.SerializeObject(request), encoding: global::System.Text.Encoding.UTF8, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateEmbedding.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateEmbedding.g.verified.cs index 96e42f4b4e..37aa7b2f7a 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateEmbedding.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateEmbedding.g.verified.cs @@ -20,7 +20,7 @@ public partial class Api using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: "/embeddings"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/embeddings", global::System.UriKind.RelativeOrAbsolute)); httpRequest.Content = new global::System.Net.Http.StringContent( content: global::Newtonsoft.Json.JsonConvert.SerializeObject(request), encoding: global::System.Text.Encoding.UTF8, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateFile.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateFile.g.verified.cs index 7d674b4cc1..ef3fbd07a9 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateFile.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateFile.g.verified.cs @@ -20,7 +20,7 @@ public partial class Api using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: "/files"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/files", global::System.UriKind.RelativeOrAbsolute)); httpRequest.Content = new global::System.Net.Http.StringContent( content: global::Newtonsoft.Json.JsonConvert.SerializeObject(request), encoding: global::System.Text.Encoding.UTF8, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateFineTuningJob.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateFineTuningJob.g.verified.cs index 73cc60e5fe..8a932eaab5 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateFineTuningJob.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateFineTuningJob.g.verified.cs @@ -20,7 +20,7 @@ public partial class Api using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: "/fine_tuning/jobs"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/fine_tuning/jobs", global::System.UriKind.RelativeOrAbsolute)); httpRequest.Content = new global::System.Net.Http.StringContent( content: global::Newtonsoft.Json.JsonConvert.SerializeObject(request), encoding: global::System.Text.Encoding.UTF8, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateImage.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateImage.g.verified.cs index e201ca7e59..c2624c4361 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateImage.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateImage.g.verified.cs @@ -20,7 +20,7 @@ public partial class Api using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: "/images/generations"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/images/generations", global::System.UriKind.RelativeOrAbsolute)); httpRequest.Content = new global::System.Net.Http.StringContent( content: global::Newtonsoft.Json.JsonConvert.SerializeObject(request), encoding: global::System.Text.Encoding.UTF8, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateImageEdit.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateImageEdit.g.verified.cs index 110e77b7c9..d41b4f0835 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateImageEdit.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateImageEdit.g.verified.cs @@ -20,7 +20,7 @@ public partial class Api using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: "/images/edits"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/images/edits", global::System.UriKind.RelativeOrAbsolute)); httpRequest.Content = new global::System.Net.Http.StringContent( content: global::Newtonsoft.Json.JsonConvert.SerializeObject(request), encoding: global::System.Text.Encoding.UTF8, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateImageVariation.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateImageVariation.g.verified.cs index 0b1a66a5ca..d4559e2849 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateImageVariation.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateImageVariation.g.verified.cs @@ -20,7 +20,7 @@ public partial class Api using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: "/images/variations"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/images/variations", global::System.UriKind.RelativeOrAbsolute)); httpRequest.Content = new global::System.Net.Http.StringContent( content: global::Newtonsoft.Json.JsonConvert.SerializeObject(request), encoding: global::System.Text.Encoding.UTF8, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateMessage.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateMessage.g.verified.cs index ddbd6e8191..4e69b325cc 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateMessage.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateMessage.g.verified.cs @@ -22,7 +22,7 @@ public partial class Api using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: $"/threads/{threadId}/messages"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/threads/{threadId}/messages", global::System.UriKind.RelativeOrAbsolute)); httpRequest.Content = new global::System.Net.Http.StringContent( content: global::Newtonsoft.Json.JsonConvert.SerializeObject(request), encoding: global::System.Text.Encoding.UTF8, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateModeration.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateModeration.g.verified.cs index 004becf08b..0be010f0ec 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateModeration.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateModeration.g.verified.cs @@ -20,7 +20,7 @@ public partial class Api using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: "/moderations"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/moderations", global::System.UriKind.RelativeOrAbsolute)); httpRequest.Content = new global::System.Net.Http.StringContent( content: global::Newtonsoft.Json.JsonConvert.SerializeObject(request), encoding: global::System.Text.Encoding.UTF8, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateRun.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateRun.g.verified.cs index af08928525..0a9dd43de7 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateRun.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateRun.g.verified.cs @@ -22,7 +22,7 @@ public partial class Api using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: $"/threads/{threadId}/runs"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/threads/{threadId}/runs", global::System.UriKind.RelativeOrAbsolute)); httpRequest.Content = new global::System.Net.Http.StringContent( content: global::Newtonsoft.Json.JsonConvert.SerializeObject(request), encoding: global::System.Text.Encoding.UTF8, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateSpeech.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateSpeech.g.verified.cs index 9d9f16108b..9166f59d65 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateSpeech.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateSpeech.g.verified.cs @@ -20,7 +20,7 @@ public partial class Api using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: "/audio/speech"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/audio/speech", global::System.UriKind.RelativeOrAbsolute)); httpRequest.Content = new global::System.Net.Http.StringContent( content: global::Newtonsoft.Json.JsonConvert.SerializeObject(request), encoding: global::System.Text.Encoding.UTF8, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateThread.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateThread.g.verified.cs index 072c81e434..5d53fbf8a1 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateThread.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateThread.g.verified.cs @@ -20,7 +20,7 @@ public partial class Api using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: "/threads"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/threads", global::System.UriKind.RelativeOrAbsolute)); httpRequest.Content = new global::System.Net.Http.StringContent( content: global::Newtonsoft.Json.JsonConvert.SerializeObject(request), encoding: global::System.Text.Encoding.UTF8, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateThreadAndRun.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateThreadAndRun.g.verified.cs index 0ae39615b4..40691f77cf 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateThreadAndRun.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateThreadAndRun.g.verified.cs @@ -20,7 +20,7 @@ public partial class Api using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: "/threads/runs"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/threads/runs", global::System.UriKind.RelativeOrAbsolute)); httpRequest.Content = new global::System.Net.Http.StringContent( content: global::Newtonsoft.Json.JsonConvert.SerializeObject(request), encoding: global::System.Text.Encoding.UTF8, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateTranscription.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateTranscription.g.verified.cs index bf2ecab873..6089daafb2 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateTranscription.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateTranscription.g.verified.cs @@ -20,7 +20,7 @@ public partial class Api using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: "/audio/transcriptions"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/audio/transcriptions", global::System.UriKind.RelativeOrAbsolute)); httpRequest.Content = new global::System.Net.Http.StringContent( content: global::Newtonsoft.Json.JsonConvert.SerializeObject(request), encoding: global::System.Text.Encoding.UTF8, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateTranslation.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateTranslation.g.verified.cs index e69d5e1a95..0dcc3ba9bd 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateTranslation.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateTranslation.g.verified.cs @@ -20,7 +20,7 @@ public partial class Api using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: "/audio/translations"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/audio/translations", global::System.UriKind.RelativeOrAbsolute)); httpRequest.Content = new global::System.Net.Http.StringContent( content: global::Newtonsoft.Json.JsonConvert.SerializeObject(request), encoding: global::System.Text.Encoding.UTF8, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateVectorStore.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateVectorStore.g.verified.cs index 4e0da08a40..7cb8e2cbf7 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateVectorStore.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateVectorStore.g.verified.cs @@ -20,7 +20,7 @@ public partial class Api using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: "/vector_stores"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/vector_stores", global::System.UriKind.RelativeOrAbsolute)); httpRequest.Content = new global::System.Net.Http.StringContent( content: global::Newtonsoft.Json.JsonConvert.SerializeObject(request), encoding: global::System.Text.Encoding.UTF8, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateVectorStoreFile.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateVectorStoreFile.g.verified.cs index 7d8d7fad7b..64bdb10a32 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateVectorStoreFile.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateVectorStoreFile.g.verified.cs @@ -22,7 +22,7 @@ public partial class Api using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: $"/vector_stores/{vectorStoreId}/files"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/vector_stores/{vectorStoreId}/files", global::System.UriKind.RelativeOrAbsolute)); httpRequest.Content = new global::System.Net.Http.StringContent( content: global::Newtonsoft.Json.JsonConvert.SerializeObject(request), encoding: global::System.Text.Encoding.UTF8, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateVectorStoreFileBatch.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateVectorStoreFileBatch.g.verified.cs index ea959adcc7..1842d51e65 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateVectorStoreFileBatch.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.CreateVectorStoreFileBatch.g.verified.cs @@ -22,7 +22,7 @@ public partial class Api using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: $"/vector_stores/{vectorStoreId}/file_batches"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/vector_stores/{vectorStoreId}/file_batches", global::System.UriKind.RelativeOrAbsolute)); httpRequest.Content = new global::System.Net.Http.StringContent( content: global::Newtonsoft.Json.JsonConvert.SerializeObject(request), encoding: global::System.Text.Encoding.UTF8, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.DeleteAssistant.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.DeleteAssistant.g.verified.cs index bd0b5a73aa..396ec33bfe 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.DeleteAssistant.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.DeleteAssistant.g.verified.cs @@ -18,7 +18,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, - requestUri: $"/assistants/{assistantId}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/assistants/{assistantId}", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.DeleteFile.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.DeleteFile.g.verified.cs index ee036a13ac..c0708c7b51 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.DeleteFile.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.DeleteFile.g.verified.cs @@ -18,7 +18,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, - requestUri: $"/files/{fileId}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/files/{fileId}", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.DeleteMessage.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.DeleteMessage.g.verified.cs index 59e51a3ea9..6b91588cbd 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.DeleteMessage.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.DeleteMessage.g.verified.cs @@ -20,7 +20,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, - requestUri: $"/threads/{threadId}/messages/{messageId}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/threads/{threadId}/messages/{messageId}", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.DeleteModel.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.DeleteModel.g.verified.cs index 7d980468eb..1a20edbcf0 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.DeleteModel.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.DeleteModel.g.verified.cs @@ -18,7 +18,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, - requestUri: $"/models/{model}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/models/{model}", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.DeleteThread.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.DeleteThread.g.verified.cs index a4cffb1dc9..68e0e1d061 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.DeleteThread.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.DeleteThread.g.verified.cs @@ -18,7 +18,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, - requestUri: $"/threads/{threadId}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/threads/{threadId}", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.DeleteVectorStore.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.DeleteVectorStore.g.verified.cs index 9d3b0d5e2a..ccd5be29e3 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.DeleteVectorStore.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.DeleteVectorStore.g.verified.cs @@ -18,7 +18,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, - requestUri: $"/vector_stores/{vectorStoreId}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/vector_stores/{vectorStoreId}", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.DeleteVectorStoreFile.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.DeleteVectorStoreFile.g.verified.cs index b56c9b1452..9efc6f7219 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.DeleteVectorStoreFile.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.DeleteVectorStoreFile.g.verified.cs @@ -20,7 +20,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, - requestUri: $"/vector_stores/{vectorStoreId}/files/{fileId}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/vector_stores/{vectorStoreId}/files/{fileId}", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.DownloadFile.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.DownloadFile.g.verified.cs index d5f4d5c213..34fd311e01 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.DownloadFile.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.DownloadFile.g.verified.cs @@ -18,7 +18,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/files/{fileId}/content"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/files/{fileId}/content", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.GetAssistant.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.GetAssistant.g.verified.cs index 7ff038f94d..a0d0465e34 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.GetAssistant.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.GetAssistant.g.verified.cs @@ -18,7 +18,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/assistants/{assistantId}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/assistants/{assistantId}", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.GetMessage.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.GetMessage.g.verified.cs index c2373073fc..5b68777f08 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.GetMessage.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.GetMessage.g.verified.cs @@ -20,7 +20,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/threads/{threadId}/messages/{messageId}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/threads/{threadId}/messages/{messageId}", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.GetRun.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.GetRun.g.verified.cs index 41cf2618e8..813d50ed5b 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.GetRun.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.GetRun.g.verified.cs @@ -20,7 +20,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/threads/{threadId}/runs/{runId}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/threads/{threadId}/runs/{runId}", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.GetRunStep.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.GetRunStep.g.verified.cs index cc6311a941..eed96b8b68 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.GetRunStep.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.GetRunStep.g.verified.cs @@ -22,7 +22,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/threads/{threadId}/runs/{runId}/steps/{stepId}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/threads/{threadId}/runs/{runId}/steps/{stepId}", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.GetThread.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.GetThread.g.verified.cs index 6a07d85ef9..abad0bbd8d 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.GetThread.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.GetThread.g.verified.cs @@ -18,7 +18,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/threads/{threadId}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/threads/{threadId}", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.GetVectorStore.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.GetVectorStore.g.verified.cs index a49ee533fc..fa30940fe2 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.GetVectorStore.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.GetVectorStore.g.verified.cs @@ -18,7 +18,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/vector_stores/{vectorStoreId}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/vector_stores/{vectorStoreId}", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.GetVectorStoreFile.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.GetVectorStoreFile.g.verified.cs index d6cabe187e..4ad297207b 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.GetVectorStoreFile.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.GetVectorStoreFile.g.verified.cs @@ -20,7 +20,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/vector_stores/{vectorStoreId}/files/{fileId}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/vector_stores/{vectorStoreId}/files/{fileId}", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.GetVectorStoreFileBatch.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.GetVectorStoreFileBatch.g.verified.cs index 4c37223bec..e35cfd73cc 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.GetVectorStoreFileBatch.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.GetVectorStoreFileBatch.g.verified.cs @@ -20,7 +20,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/vector_stores/{vectorStoreId}/file_batches/{batchId}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/vector_stores/{vectorStoreId}/file_batches/{batchId}", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.ListAssistants.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.ListAssistants.g.verified.cs index 03744da3df..5d9410bb1a 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.ListAssistants.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.ListAssistants.g.verified.cs @@ -30,7 +30,7 @@ public partial class Api }; using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/assistants?limit={limit}&order={orderValue}&after={after}&before={before}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/assistants?limit={limit}&order={orderValue}&after={after}&before={before}", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.ListBatches.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.ListBatches.g.verified.cs index 0c70391dbb..12760e58f7 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.ListBatches.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.ListBatches.g.verified.cs @@ -20,7 +20,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/batches?after={after}&limit={limit}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/batches?after={after}&limit={limit}", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.ListFiles.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.ListFiles.g.verified.cs index c34f2ab2ce..be4cff72c0 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.ListFiles.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.ListFiles.g.verified.cs @@ -18,7 +18,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/files?purpose={purpose}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/files?purpose={purpose}", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.ListFilesInVectorStoreBatch.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.ListFilesInVectorStoreBatch.g.verified.cs index f386a49aff..77a6a440c7 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.ListFilesInVectorStoreBatch.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.ListFilesInVectorStoreBatch.g.verified.cs @@ -44,7 +44,7 @@ public partial class Api }; using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/vector_stores/{vectorStoreId}/file_batches/{batchId}/files?limit={limit}&order={orderValue}&after={after}&before={before}&filter={filterValue}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/vector_stores/{vectorStoreId}/file_batches/{batchId}/files?limit={limit}&order={orderValue}&after={after}&before={before}&filter={filterValue}", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.ListFineTuningEvents.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.ListFineTuningEvents.g.verified.cs index 9219efa5b4..013e1f8c1a 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.ListFineTuningEvents.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.ListFineTuningEvents.g.verified.cs @@ -22,7 +22,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/fine_tuning/jobs/{fineTuningJobId}/events?after={after}&limit={limit}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/fine_tuning/jobs/{fineTuningJobId}/events?after={after}&limit={limit}", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.ListFineTuningJobCheckpoints.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.ListFineTuningJobCheckpoints.g.verified.cs index d517209c7f..f4bab96a34 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.ListFineTuningJobCheckpoints.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.ListFineTuningJobCheckpoints.g.verified.cs @@ -22,7 +22,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/fine_tuning/jobs/{fineTuningJobId}/checkpoints?after={after}&limit={limit}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/fine_tuning/jobs/{fineTuningJobId}/checkpoints?after={after}&limit={limit}", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.ListMessages.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.ListMessages.g.verified.cs index fdeced90e8..d6db77dcbd 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.ListMessages.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.ListMessages.g.verified.cs @@ -34,7 +34,7 @@ public partial class Api }; using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/threads/{threadId}/messages?limit={limit}&order={orderValue}&after={after}&before={before}&run_id={runId}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/threads/{threadId}/messages?limit={limit}&order={orderValue}&after={after}&before={before}&run_id={runId}", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.ListModels.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.ListModels.g.verified.cs index ebbe2eee3e..ea3c9cd8d9 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.ListModels.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.ListModels.g.verified.cs @@ -16,7 +16,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: "/models"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/models", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.ListPaginatedFineTuningJobs.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.ListPaginatedFineTuningJobs.g.verified.cs index 0e59b36b16..bb1e983807 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.ListPaginatedFineTuningJobs.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.ListPaginatedFineTuningJobs.g.verified.cs @@ -20,7 +20,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/fine_tuning/jobs?after={after}&limit={limit}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/fine_tuning/jobs?after={after}&limit={limit}", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.ListRunSteps.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.ListRunSteps.g.verified.cs index 6eb9288023..a79c835e38 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.ListRunSteps.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.ListRunSteps.g.verified.cs @@ -34,7 +34,7 @@ public partial class Api }; using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/threads/{threadId}/runs/{runId}/steps?limit={limit}&order={orderValue}&after={after}&before={before}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/threads/{threadId}/runs/{runId}/steps?limit={limit}&order={orderValue}&after={after}&before={before}", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.ListRuns.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.ListRuns.g.verified.cs index fe552b7336..f6db4e95ee 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.ListRuns.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.ListRuns.g.verified.cs @@ -32,7 +32,7 @@ public partial class Api }; using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/threads/{threadId}/runs?limit={limit}&order={orderValue}&after={after}&before={before}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/threads/{threadId}/runs?limit={limit}&order={orderValue}&after={after}&before={before}", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.ListVectorStoreFiles.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.ListVectorStoreFiles.g.verified.cs index 7f268ca0ae..15d6abd0f5 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.ListVectorStoreFiles.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.ListVectorStoreFiles.g.verified.cs @@ -42,7 +42,7 @@ public partial class Api }; using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/vector_stores/{vectorStoreId}/files?limit={limit}&order={orderValue}&after={after}&before={before}&filter={filterValue}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/vector_stores/{vectorStoreId}/files?limit={limit}&order={orderValue}&after={after}&before={before}&filter={filterValue}", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.ListVectorStores.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.ListVectorStores.g.verified.cs index 1a9cfb1933..97567d46c1 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.ListVectorStores.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.ListVectorStores.g.verified.cs @@ -30,7 +30,7 @@ public partial class Api }; using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/vector_stores?limit={limit}&order={orderValue}&after={after}&before={before}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/vector_stores?limit={limit}&order={orderValue}&after={after}&before={before}", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.ModifyAssistant.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.ModifyAssistant.g.verified.cs index e8b5e668c7..fad6efc33a 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.ModifyAssistant.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.ModifyAssistant.g.verified.cs @@ -22,7 +22,7 @@ public partial class Api using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: $"/assistants/{assistantId}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/assistants/{assistantId}", global::System.UriKind.RelativeOrAbsolute)); httpRequest.Content = new global::System.Net.Http.StringContent( content: global::Newtonsoft.Json.JsonConvert.SerializeObject(request), encoding: global::System.Text.Encoding.UTF8, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.ModifyMessage.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.ModifyMessage.g.verified.cs index 3e90aa4c51..d8161be59f 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.ModifyMessage.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.ModifyMessage.g.verified.cs @@ -24,7 +24,7 @@ public partial class Api using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: $"/threads/{threadId}/messages/{messageId}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/threads/{threadId}/messages/{messageId}", global::System.UriKind.RelativeOrAbsolute)); httpRequest.Content = new global::System.Net.Http.StringContent( content: global::Newtonsoft.Json.JsonConvert.SerializeObject(request), encoding: global::System.Text.Encoding.UTF8, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.ModifyRun.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.ModifyRun.g.verified.cs index 32ccf3f404..50fa249cd6 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.ModifyRun.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.ModifyRun.g.verified.cs @@ -24,7 +24,7 @@ public partial class Api using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: $"/threads/{threadId}/runs/{runId}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/threads/{threadId}/runs/{runId}", global::System.UriKind.RelativeOrAbsolute)); httpRequest.Content = new global::System.Net.Http.StringContent( content: global::Newtonsoft.Json.JsonConvert.SerializeObject(request), encoding: global::System.Text.Encoding.UTF8, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.ModifyThread.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.ModifyThread.g.verified.cs index fa364abbe3..85de6f7a8b 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.ModifyThread.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.ModifyThread.g.verified.cs @@ -22,7 +22,7 @@ public partial class Api using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: $"/threads/{threadId}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/threads/{threadId}", global::System.UriKind.RelativeOrAbsolute)); httpRequest.Content = new global::System.Net.Http.StringContent( content: global::Newtonsoft.Json.JsonConvert.SerializeObject(request), encoding: global::System.Text.Encoding.UTF8, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.ModifyVectorStore.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.ModifyVectorStore.g.verified.cs index 1533322f6f..8f20d02d40 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.ModifyVectorStore.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.ModifyVectorStore.g.verified.cs @@ -22,7 +22,7 @@ public partial class Api using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: $"/vector_stores/{vectorStoreId}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/vector_stores/{vectorStoreId}", global::System.UriKind.RelativeOrAbsolute)); httpRequest.Content = new global::System.Net.Http.StringContent( content: global::Newtonsoft.Json.JsonConvert.SerializeObject(request), encoding: global::System.Text.Encoding.UTF8, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.RetrieveBatch.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.RetrieveBatch.g.verified.cs index 6ec3fe1b61..d99f988c78 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.RetrieveBatch.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.RetrieveBatch.g.verified.cs @@ -18,7 +18,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/batches/{batchId}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/batches/{batchId}", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.RetrieveFile.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.RetrieveFile.g.verified.cs index a480c1fdfd..d0b84d8f86 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.RetrieveFile.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.RetrieveFile.g.verified.cs @@ -18,7 +18,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/files/{fileId}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/files/{fileId}", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.RetrieveFineTuningJob.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.RetrieveFineTuningJob.g.verified.cs index 399a8ff1b0..4808e3f4d2 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.RetrieveFineTuningJob.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.RetrieveFineTuningJob.g.verified.cs @@ -18,7 +18,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/fine_tuning/jobs/{fineTuningJobId}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/fine_tuning/jobs/{fineTuningJobId}", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.RetrieveModel.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.RetrieveModel.g.verified.cs index d3b06735dd..ed2bec85be 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.RetrieveModel.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.RetrieveModel.g.verified.cs @@ -18,7 +18,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/models/{model}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/models/{model}", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.SubmitToolOuputsToRun.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.SubmitToolOuputsToRun.g.verified.cs index 419a066d47..cdfde4f62c 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.SubmitToolOuputsToRun.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Api.EndPoints.SubmitToolOuputsToRun.g.verified.cs @@ -24,7 +24,7 @@ public partial class Api using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: $"/threads/{threadId}/runs/{runId}/submit_tool_outputs"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/threads/{threadId}/runs/{runId}/submit_tool_outputs", global::System.UriKind.RelativeOrAbsolute)); httpRequest.Content = new global::System.Net.Http.StringContent( content: global::Newtonsoft.Json.JsonConvert.SerializeObject(request), encoding: global::System.Text.Encoding.UTF8, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CancelBatch.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CancelBatch.g.verified.cs index ee84880677..0f1c0087dd 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CancelBatch.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CancelBatch.g.verified.cs @@ -18,7 +18,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: $"/batches/{batchId}/cancel"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/batches/{batchId}/cancel", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CancelFineTuningJob.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CancelFineTuningJob.g.verified.cs index c85e9922ef..9a27fa9085 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CancelFineTuningJob.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CancelFineTuningJob.g.verified.cs @@ -18,7 +18,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: $"/fine_tuning/jobs/{fineTuningJobId}/cancel"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/fine_tuning/jobs/{fineTuningJobId}/cancel", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CancelRun.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CancelRun.g.verified.cs index 18ca0fb5f6..e69cf4fbd2 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CancelRun.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CancelRun.g.verified.cs @@ -20,7 +20,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: $"/threads/{threadId}/runs/{runId}/cancel"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/threads/{threadId}/runs/{runId}/cancel", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CancelVectorStoreFileBatch.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CancelVectorStoreFileBatch.g.verified.cs index 97101498e8..aaa75e3224 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CancelVectorStoreFileBatch.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CancelVectorStoreFileBatch.g.verified.cs @@ -20,7 +20,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: $"/vector_stores/{vectorStoreId}/file_batches/{batchId}/cancel"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/vector_stores/{vectorStoreId}/file_batches/{batchId}/cancel", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateAssistant.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateAssistant.g.verified.cs index 13fa527c0c..386c0b9319 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateAssistant.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateAssistant.g.verified.cs @@ -20,7 +20,7 @@ public partial class Api using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: "/assistants"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/assistants", global::System.UriKind.RelativeOrAbsolute)); httpRequest.Content = new global::System.Net.Http.StringContent( content: global::System.Text.Json.JsonSerializer.Serialize(request), encoding: global::System.Text.Encoding.UTF8, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateBatch.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateBatch.g.verified.cs index 442afd52fb..7fbceb5811 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateBatch.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateBatch.g.verified.cs @@ -16,7 +16,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: "/batches"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/batches", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateChatCompletion.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateChatCompletion.g.verified.cs index bb028e472c..4ba94bcff7 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateChatCompletion.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateChatCompletion.g.verified.cs @@ -20,7 +20,7 @@ public partial class Api using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: "/chat/completions"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/chat/completions", global::System.UriKind.RelativeOrAbsolute)); httpRequest.Content = new global::System.Net.Http.StringContent( content: global::System.Text.Json.JsonSerializer.Serialize(request), encoding: global::System.Text.Encoding.UTF8, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateCompletion.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateCompletion.g.verified.cs index 037c488a04..d2c4a16060 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateCompletion.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateCompletion.g.verified.cs @@ -20,7 +20,7 @@ public partial class Api using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: "/completions"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/completions", global::System.UriKind.RelativeOrAbsolute)); httpRequest.Content = new global::System.Net.Http.StringContent( content: global::System.Text.Json.JsonSerializer.Serialize(request), encoding: global::System.Text.Encoding.UTF8, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateEmbedding.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateEmbedding.g.verified.cs index 370cebd59b..f05faca610 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateEmbedding.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateEmbedding.g.verified.cs @@ -20,7 +20,7 @@ public partial class Api using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: "/embeddings"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/embeddings", global::System.UriKind.RelativeOrAbsolute)); httpRequest.Content = new global::System.Net.Http.StringContent( content: global::System.Text.Json.JsonSerializer.Serialize(request), encoding: global::System.Text.Encoding.UTF8, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateFile.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateFile.g.verified.cs index ff6b54a750..6f1f4d1008 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateFile.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateFile.g.verified.cs @@ -20,7 +20,7 @@ public partial class Api using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: "/files"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/files", global::System.UriKind.RelativeOrAbsolute)); httpRequest.Content = new global::System.Net.Http.StringContent( content: global::System.Text.Json.JsonSerializer.Serialize(request), encoding: global::System.Text.Encoding.UTF8, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateFineTuningJob.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateFineTuningJob.g.verified.cs index 43cd46ca42..4b189f5670 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateFineTuningJob.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateFineTuningJob.g.verified.cs @@ -20,7 +20,7 @@ public partial class Api using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: "/fine_tuning/jobs"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/fine_tuning/jobs", global::System.UriKind.RelativeOrAbsolute)); httpRequest.Content = new global::System.Net.Http.StringContent( content: global::System.Text.Json.JsonSerializer.Serialize(request), encoding: global::System.Text.Encoding.UTF8, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateImage.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateImage.g.verified.cs index 9946a53c11..394b772224 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateImage.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateImage.g.verified.cs @@ -20,7 +20,7 @@ public partial class Api using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: "/images/generations"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/images/generations", global::System.UriKind.RelativeOrAbsolute)); httpRequest.Content = new global::System.Net.Http.StringContent( content: global::System.Text.Json.JsonSerializer.Serialize(request), encoding: global::System.Text.Encoding.UTF8, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateImageEdit.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateImageEdit.g.verified.cs index f0aaf9a428..237908d37b 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateImageEdit.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateImageEdit.g.verified.cs @@ -20,7 +20,7 @@ public partial class Api using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: "/images/edits"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/images/edits", global::System.UriKind.RelativeOrAbsolute)); httpRequest.Content = new global::System.Net.Http.StringContent( content: global::System.Text.Json.JsonSerializer.Serialize(request), encoding: global::System.Text.Encoding.UTF8, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateImageVariation.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateImageVariation.g.verified.cs index f331f75a63..bcec310b02 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateImageVariation.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateImageVariation.g.verified.cs @@ -20,7 +20,7 @@ public partial class Api using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: "/images/variations"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/images/variations", global::System.UriKind.RelativeOrAbsolute)); httpRequest.Content = new global::System.Net.Http.StringContent( content: global::System.Text.Json.JsonSerializer.Serialize(request), encoding: global::System.Text.Encoding.UTF8, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateMessage.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateMessage.g.verified.cs index 794a8962e3..cbfddad0db 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateMessage.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateMessage.g.verified.cs @@ -22,7 +22,7 @@ public partial class Api using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: $"/threads/{threadId}/messages"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/threads/{threadId}/messages", global::System.UriKind.RelativeOrAbsolute)); httpRequest.Content = new global::System.Net.Http.StringContent( content: global::System.Text.Json.JsonSerializer.Serialize(request), encoding: global::System.Text.Encoding.UTF8, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateModeration.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateModeration.g.verified.cs index 29ec042db5..ac00f3255e 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateModeration.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateModeration.g.verified.cs @@ -20,7 +20,7 @@ public partial class Api using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: "/moderations"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/moderations", global::System.UriKind.RelativeOrAbsolute)); httpRequest.Content = new global::System.Net.Http.StringContent( content: global::System.Text.Json.JsonSerializer.Serialize(request), encoding: global::System.Text.Encoding.UTF8, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateRun.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateRun.g.verified.cs index 763b887c92..2ecd4877ff 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateRun.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateRun.g.verified.cs @@ -22,7 +22,7 @@ public partial class Api using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: $"/threads/{threadId}/runs"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/threads/{threadId}/runs", global::System.UriKind.RelativeOrAbsolute)); httpRequest.Content = new global::System.Net.Http.StringContent( content: global::System.Text.Json.JsonSerializer.Serialize(request), encoding: global::System.Text.Encoding.UTF8, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateSpeech.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateSpeech.g.verified.cs index 8d24f162d8..9aa0745dae 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateSpeech.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateSpeech.g.verified.cs @@ -20,7 +20,7 @@ public partial class Api using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: "/audio/speech"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/audio/speech", global::System.UriKind.RelativeOrAbsolute)); httpRequest.Content = new global::System.Net.Http.StringContent( content: global::System.Text.Json.JsonSerializer.Serialize(request), encoding: global::System.Text.Encoding.UTF8, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateThread.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateThread.g.verified.cs index ca9e3e38fb..791e65347f 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateThread.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateThread.g.verified.cs @@ -20,7 +20,7 @@ public partial class Api using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: "/threads"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/threads", global::System.UriKind.RelativeOrAbsolute)); httpRequest.Content = new global::System.Net.Http.StringContent( content: global::System.Text.Json.JsonSerializer.Serialize(request), encoding: global::System.Text.Encoding.UTF8, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateThreadAndRun.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateThreadAndRun.g.verified.cs index ec9508900f..3dc96ee2b0 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateThreadAndRun.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateThreadAndRun.g.verified.cs @@ -20,7 +20,7 @@ public partial class Api using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: "/threads/runs"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/threads/runs", global::System.UriKind.RelativeOrAbsolute)); httpRequest.Content = new global::System.Net.Http.StringContent( content: global::System.Text.Json.JsonSerializer.Serialize(request), encoding: global::System.Text.Encoding.UTF8, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateTranscription.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateTranscription.g.verified.cs index 6c4cdb3546..aa2e21a832 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateTranscription.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateTranscription.g.verified.cs @@ -20,7 +20,7 @@ public partial class Api using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: "/audio/transcriptions"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/audio/transcriptions", global::System.UriKind.RelativeOrAbsolute)); httpRequest.Content = new global::System.Net.Http.StringContent( content: global::System.Text.Json.JsonSerializer.Serialize(request), encoding: global::System.Text.Encoding.UTF8, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateTranslation.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateTranslation.g.verified.cs index 8db54dd4d4..4fb50f3d32 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateTranslation.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateTranslation.g.verified.cs @@ -20,7 +20,7 @@ public partial class Api using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: "/audio/translations"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/audio/translations", global::System.UriKind.RelativeOrAbsolute)); httpRequest.Content = new global::System.Net.Http.StringContent( content: global::System.Text.Json.JsonSerializer.Serialize(request), encoding: global::System.Text.Encoding.UTF8, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateVectorStore.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateVectorStore.g.verified.cs index 55f9bf3166..37d41f5004 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateVectorStore.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateVectorStore.g.verified.cs @@ -20,7 +20,7 @@ public partial class Api using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: "/vector_stores"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/vector_stores", global::System.UriKind.RelativeOrAbsolute)); httpRequest.Content = new global::System.Net.Http.StringContent( content: global::System.Text.Json.JsonSerializer.Serialize(request), encoding: global::System.Text.Encoding.UTF8, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateVectorStoreFile.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateVectorStoreFile.g.verified.cs index b9ebea0cd0..1f5d93b87a 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateVectorStoreFile.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateVectorStoreFile.g.verified.cs @@ -22,7 +22,7 @@ public partial class Api using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: $"/vector_stores/{vectorStoreId}/files"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/vector_stores/{vectorStoreId}/files", global::System.UriKind.RelativeOrAbsolute)); httpRequest.Content = new global::System.Net.Http.StringContent( content: global::System.Text.Json.JsonSerializer.Serialize(request), encoding: global::System.Text.Encoding.UTF8, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateVectorStoreFileBatch.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateVectorStoreFileBatch.g.verified.cs index ba8799ca65..7dfbfe1c6a 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateVectorStoreFileBatch.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.CreateVectorStoreFileBatch.g.verified.cs @@ -22,7 +22,7 @@ public partial class Api using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: $"/vector_stores/{vectorStoreId}/file_batches"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/vector_stores/{vectorStoreId}/file_batches", global::System.UriKind.RelativeOrAbsolute)); httpRequest.Content = new global::System.Net.Http.StringContent( content: global::System.Text.Json.JsonSerializer.Serialize(request), encoding: global::System.Text.Encoding.UTF8, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.DeleteAssistant.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.DeleteAssistant.g.verified.cs index acf431a444..72d6bc8903 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.DeleteAssistant.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.DeleteAssistant.g.verified.cs @@ -18,7 +18,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, - requestUri: $"/assistants/{assistantId}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/assistants/{assistantId}", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.DeleteFile.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.DeleteFile.g.verified.cs index d9cbe648eb..468a899d34 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.DeleteFile.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.DeleteFile.g.verified.cs @@ -18,7 +18,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, - requestUri: $"/files/{fileId}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/files/{fileId}", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.DeleteMessage.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.DeleteMessage.g.verified.cs index c977d85fd4..2d4be093cd 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.DeleteMessage.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.DeleteMessage.g.verified.cs @@ -20,7 +20,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, - requestUri: $"/threads/{threadId}/messages/{messageId}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/threads/{threadId}/messages/{messageId}", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.DeleteModel.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.DeleteModel.g.verified.cs index 183ff48370..1ec812274c 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.DeleteModel.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.DeleteModel.g.verified.cs @@ -18,7 +18,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, - requestUri: $"/models/{model}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/models/{model}", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.DeleteThread.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.DeleteThread.g.verified.cs index 4a016c66e2..6e2ae72f2e 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.DeleteThread.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.DeleteThread.g.verified.cs @@ -18,7 +18,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, - requestUri: $"/threads/{threadId}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/threads/{threadId}", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.DeleteVectorStore.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.DeleteVectorStore.g.verified.cs index c500957da3..c0229a1fb8 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.DeleteVectorStore.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.DeleteVectorStore.g.verified.cs @@ -18,7 +18,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, - requestUri: $"/vector_stores/{vectorStoreId}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/vector_stores/{vectorStoreId}", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.DeleteVectorStoreFile.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.DeleteVectorStoreFile.g.verified.cs index 548706397b..4cad43780e 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.DeleteVectorStoreFile.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.DeleteVectorStoreFile.g.verified.cs @@ -20,7 +20,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, - requestUri: $"/vector_stores/{vectorStoreId}/files/{fileId}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/vector_stores/{vectorStoreId}/files/{fileId}", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.DownloadFile.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.DownloadFile.g.verified.cs index d5f4d5c213..34fd311e01 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.DownloadFile.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.DownloadFile.g.verified.cs @@ -18,7 +18,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/files/{fileId}/content"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/files/{fileId}/content", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.GetAssistant.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.GetAssistant.g.verified.cs index 33e4a85d5f..6c97ed1375 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.GetAssistant.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.GetAssistant.g.verified.cs @@ -18,7 +18,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/assistants/{assistantId}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/assistants/{assistantId}", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.GetMessage.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.GetMessage.g.verified.cs index 677fb11d2e..9c9de0a00c 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.GetMessage.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.GetMessage.g.verified.cs @@ -20,7 +20,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/threads/{threadId}/messages/{messageId}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/threads/{threadId}/messages/{messageId}", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.GetRun.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.GetRun.g.verified.cs index 5659a6050f..ae8ac9fd00 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.GetRun.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.GetRun.g.verified.cs @@ -20,7 +20,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/threads/{threadId}/runs/{runId}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/threads/{threadId}/runs/{runId}", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.GetRunStep.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.GetRunStep.g.verified.cs index 24b8338b84..313f06c237 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.GetRunStep.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.GetRunStep.g.verified.cs @@ -22,7 +22,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/threads/{threadId}/runs/{runId}/steps/{stepId}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/threads/{threadId}/runs/{runId}/steps/{stepId}", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.GetThread.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.GetThread.g.verified.cs index ad26666dce..cd2ad9dff4 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.GetThread.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.GetThread.g.verified.cs @@ -18,7 +18,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/threads/{threadId}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/threads/{threadId}", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.GetVectorStore.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.GetVectorStore.g.verified.cs index 82b016bc67..3120dbee1d 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.GetVectorStore.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.GetVectorStore.g.verified.cs @@ -18,7 +18,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/vector_stores/{vectorStoreId}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/vector_stores/{vectorStoreId}", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.GetVectorStoreFile.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.GetVectorStoreFile.g.verified.cs index 25222dc821..eeed193ee1 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.GetVectorStoreFile.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.GetVectorStoreFile.g.verified.cs @@ -20,7 +20,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/vector_stores/{vectorStoreId}/files/{fileId}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/vector_stores/{vectorStoreId}/files/{fileId}", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.GetVectorStoreFileBatch.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.GetVectorStoreFileBatch.g.verified.cs index fc03efd010..05a4ecfc9b 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.GetVectorStoreFileBatch.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.GetVectorStoreFileBatch.g.verified.cs @@ -20,7 +20,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/vector_stores/{vectorStoreId}/file_batches/{batchId}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/vector_stores/{vectorStoreId}/file_batches/{batchId}", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.ListAssistants.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.ListAssistants.g.verified.cs index ea5ed80ab0..c264ef7d73 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.ListAssistants.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.ListAssistants.g.verified.cs @@ -24,7 +24,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/assistants?limit={limit}&order={order}&after={after}&before={before}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/assistants?limit={limit}&order={order}&after={after}&before={before}", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.ListBatches.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.ListBatches.g.verified.cs index 1589d46f4a..364403dbaf 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.ListBatches.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.ListBatches.g.verified.cs @@ -20,7 +20,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/batches?after={after}&limit={limit}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/batches?after={after}&limit={limit}", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.ListFiles.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.ListFiles.g.verified.cs index ab636157f4..5cb26f84b0 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.ListFiles.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.ListFiles.g.verified.cs @@ -18,7 +18,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/files?purpose={purpose}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/files?purpose={purpose}", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.ListFilesInVectorStoreBatch.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.ListFilesInVectorStoreBatch.g.verified.cs index 0f83940bb4..004cd3e450 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.ListFilesInVectorStoreBatch.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.ListFilesInVectorStoreBatch.g.verified.cs @@ -30,7 +30,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/vector_stores/{vectorStoreId}/file_batches/{batchId}/files?limit={limit}&order={order}&after={after}&before={before}&filter={filter}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/vector_stores/{vectorStoreId}/file_batches/{batchId}/files?limit={limit}&order={order}&after={after}&before={before}&filter={filter}", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.ListFineTuningEvents.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.ListFineTuningEvents.g.verified.cs index c173962696..3d22a57c91 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.ListFineTuningEvents.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.ListFineTuningEvents.g.verified.cs @@ -22,7 +22,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/fine_tuning/jobs/{fineTuningJobId}/events?after={after}&limit={limit}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/fine_tuning/jobs/{fineTuningJobId}/events?after={after}&limit={limit}", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.ListFineTuningJobCheckpoints.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.ListFineTuningJobCheckpoints.g.verified.cs index 78537f1b75..c0fe595f70 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.ListFineTuningJobCheckpoints.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.ListFineTuningJobCheckpoints.g.verified.cs @@ -22,7 +22,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/fine_tuning/jobs/{fineTuningJobId}/checkpoints?after={after}&limit={limit}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/fine_tuning/jobs/{fineTuningJobId}/checkpoints?after={after}&limit={limit}", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.ListMessages.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.ListMessages.g.verified.cs index b45875bd3c..762703f986 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.ListMessages.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.ListMessages.g.verified.cs @@ -28,7 +28,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/threads/{threadId}/messages?limit={limit}&order={order}&after={after}&before={before}&run_id={runId}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/threads/{threadId}/messages?limit={limit}&order={order}&after={after}&before={before}&run_id={runId}", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.ListModels.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.ListModels.g.verified.cs index beee79b02c..dd2700bcd2 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.ListModels.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.ListModels.g.verified.cs @@ -16,7 +16,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: "/models"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/models", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.ListPaginatedFineTuningJobs.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.ListPaginatedFineTuningJobs.g.verified.cs index 8a82b409a6..e9382b1a45 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.ListPaginatedFineTuningJobs.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.ListPaginatedFineTuningJobs.g.verified.cs @@ -20,7 +20,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/fine_tuning/jobs?after={after}&limit={limit}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/fine_tuning/jobs?after={after}&limit={limit}", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.ListRunSteps.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.ListRunSteps.g.verified.cs index e8f516ef55..8770fd30d0 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.ListRunSteps.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.ListRunSteps.g.verified.cs @@ -28,7 +28,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/threads/{threadId}/runs/{runId}/steps?limit={limit}&order={order}&after={after}&before={before}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/threads/{threadId}/runs/{runId}/steps?limit={limit}&order={order}&after={after}&before={before}", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.ListRuns.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.ListRuns.g.verified.cs index 4bbbf7214c..fe927f4f99 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.ListRuns.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.ListRuns.g.verified.cs @@ -26,7 +26,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/threads/{threadId}/runs?limit={limit}&order={order}&after={after}&before={before}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/threads/{threadId}/runs?limit={limit}&order={order}&after={after}&before={before}", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.ListVectorStoreFiles.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.ListVectorStoreFiles.g.verified.cs index 99381188b0..6e91aacaf3 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.ListVectorStoreFiles.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.ListVectorStoreFiles.g.verified.cs @@ -28,7 +28,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/vector_stores/{vectorStoreId}/files?limit={limit}&order={order}&after={after}&before={before}&filter={filter}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/vector_stores/{vectorStoreId}/files?limit={limit}&order={order}&after={after}&before={before}&filter={filter}", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.ListVectorStores.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.ListVectorStores.g.verified.cs index e3cbe68566..e9167477e8 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.ListVectorStores.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.ListVectorStores.g.verified.cs @@ -24,7 +24,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/vector_stores?limit={limit}&order={order}&after={after}&before={before}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/vector_stores?limit={limit}&order={order}&after={after}&before={before}", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.ModifyAssistant.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.ModifyAssistant.g.verified.cs index 80969eeffd..820330eb1e 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.ModifyAssistant.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.ModifyAssistant.g.verified.cs @@ -22,7 +22,7 @@ public partial class Api using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: $"/assistants/{assistantId}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/assistants/{assistantId}", global::System.UriKind.RelativeOrAbsolute)); httpRequest.Content = new global::System.Net.Http.StringContent( content: global::System.Text.Json.JsonSerializer.Serialize(request), encoding: global::System.Text.Encoding.UTF8, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.ModifyMessage.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.ModifyMessage.g.verified.cs index 666306e923..733ffc9eaf 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.ModifyMessage.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.ModifyMessage.g.verified.cs @@ -24,7 +24,7 @@ public partial class Api using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: $"/threads/{threadId}/messages/{messageId}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/threads/{threadId}/messages/{messageId}", global::System.UriKind.RelativeOrAbsolute)); httpRequest.Content = new global::System.Net.Http.StringContent( content: global::System.Text.Json.JsonSerializer.Serialize(request), encoding: global::System.Text.Encoding.UTF8, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.ModifyRun.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.ModifyRun.g.verified.cs index cdefc3e48b..23ca586147 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.ModifyRun.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.ModifyRun.g.verified.cs @@ -24,7 +24,7 @@ public partial class Api using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: $"/threads/{threadId}/runs/{runId}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/threads/{threadId}/runs/{runId}", global::System.UriKind.RelativeOrAbsolute)); httpRequest.Content = new global::System.Net.Http.StringContent( content: global::System.Text.Json.JsonSerializer.Serialize(request), encoding: global::System.Text.Encoding.UTF8, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.ModifyThread.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.ModifyThread.g.verified.cs index de41ebbb2b..d4496c26a4 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.ModifyThread.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.ModifyThread.g.verified.cs @@ -22,7 +22,7 @@ public partial class Api using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: $"/threads/{threadId}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/threads/{threadId}", global::System.UriKind.RelativeOrAbsolute)); httpRequest.Content = new global::System.Net.Http.StringContent( content: global::System.Text.Json.JsonSerializer.Serialize(request), encoding: global::System.Text.Encoding.UTF8, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.ModifyVectorStore.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.ModifyVectorStore.g.verified.cs index 7ee04d6523..d763c42ffa 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.ModifyVectorStore.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.ModifyVectorStore.g.verified.cs @@ -22,7 +22,7 @@ public partial class Api using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: $"/vector_stores/{vectorStoreId}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/vector_stores/{vectorStoreId}", global::System.UriKind.RelativeOrAbsolute)); httpRequest.Content = new global::System.Net.Http.StringContent( content: global::System.Text.Json.JsonSerializer.Serialize(request), encoding: global::System.Text.Encoding.UTF8, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.RetrieveBatch.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.RetrieveBatch.g.verified.cs index e145c57d90..09bc81950a 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.RetrieveBatch.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.RetrieveBatch.g.verified.cs @@ -18,7 +18,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/batches/{batchId}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/batches/{batchId}", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.RetrieveFile.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.RetrieveFile.g.verified.cs index 3cdcd4d929..96a24af64a 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.RetrieveFile.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.RetrieveFile.g.verified.cs @@ -18,7 +18,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/files/{fileId}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/files/{fileId}", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.RetrieveFineTuningJob.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.RetrieveFineTuningJob.g.verified.cs index 0abb927bde..1ef1b0d679 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.RetrieveFineTuningJob.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.RetrieveFineTuningJob.g.verified.cs @@ -18,7 +18,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/fine_tuning/jobs/{fineTuningJobId}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/fine_tuning/jobs/{fineTuningJobId}", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.RetrieveModel.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.RetrieveModel.g.verified.cs index aecdaebd54..6908284377 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.RetrieveModel.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.RetrieveModel.g.verified.cs @@ -18,7 +18,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/models/{model}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/models/{model}", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.SubmitToolOuputsToRun.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.SubmitToolOuputsToRun.g.verified.cs index e916ad9036..e488eb6ebd 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.SubmitToolOuputsToRun.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Api.EndPoints.SubmitToolOuputsToRun.g.verified.cs @@ -24,7 +24,7 @@ public partial class Api using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: $"/threads/{threadId}/runs/{runId}/submit_tool_outputs"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/threads/{threadId}/runs/{runId}/submit_tool_outputs", global::System.UriKind.RelativeOrAbsolute)); httpRequest.Content = new global::System.Net.Http.StringContent( content: global::System.Text.Json.JsonSerializer.Serialize(request), encoding: global::System.Text.Encoding.UTF8, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenApi3_0_Yaml/NewtonsoftJson/_#G.Api.EndPoints.GetPets.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenApi3_0_Yaml/NewtonsoftJson/_#G.Api.EndPoints.GetPets.g.verified.cs index 590f76a70b..02839369f0 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenApi3_0_Yaml/NewtonsoftJson/_#G.Api.EndPoints.GetPets.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenApi3_0_Yaml/NewtonsoftJson/_#G.Api.EndPoints.GetPets.g.verified.cs @@ -16,7 +16,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: "/pets"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/pets", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenApi3_0_Yaml/SystemTextJson/_#G.Api.EndPoints.GetPets.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenApi3_0_Yaml/SystemTextJson/_#G.Api.EndPoints.GetPets.g.verified.cs index 590f76a70b..02839369f0 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenApi3_0_Yaml/SystemTextJson/_#G.Api.EndPoints.GetPets.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenApi3_0_Yaml/SystemTextJson/_#G.Api.EndPoints.GetPets.g.verified.cs @@ -16,7 +16,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: "/pets"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/pets", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.Batch.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.Batch.g.verified.cs index 6c7fab2f4e..4c60685228 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.Batch.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.Batch.g.verified.cs @@ -16,7 +16,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: "/batch"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/batch", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetAbuse.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetAbuse.g.verified.cs index 029d460c1a..ec5f563a87 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetAbuse.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetAbuse.g.verified.cs @@ -18,7 +18,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/{ip}/abuse"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/{ip}/abuse", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetAsn.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetAsn.g.verified.cs index ca5bbb41fc..041bdaa5a7 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetAsn.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetAsn.g.verified.cs @@ -18,7 +18,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/AS{asn}/json"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/AS{asn}/json", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetCityByIp.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetCityByIp.g.verified.cs index d5968b5969..1c9bc3d46e 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetCityByIp.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetCityByIp.g.verified.cs @@ -18,7 +18,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/{ip}/city"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/{ip}/city", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetCountryByIp.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetCountryByIp.g.verified.cs index 32660572dc..fe0a98d48d 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetCountryByIp.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetCountryByIp.g.verified.cs @@ -18,7 +18,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/{ip}/country"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/{ip}/country", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetCurrentCity.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetCurrentCity.g.verified.cs index 0eb1db5a25..858ae74544 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetCurrentCity.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetCurrentCity.g.verified.cs @@ -16,7 +16,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: "/city"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/city", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetCurrentCountry.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetCurrentCountry.g.verified.cs index 9766dbdf54..f7bda5c576 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetCurrentCountry.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetCurrentCountry.g.verified.cs @@ -16,7 +16,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: "/country"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/country", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetCurrentHostname.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetCurrentHostname.g.verified.cs index d98cf72e97..0fd6c7fa86 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetCurrentHostname.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetCurrentHostname.g.verified.cs @@ -16,7 +16,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: "/hostname"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/hostname", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetCurrentInformation.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetCurrentInformation.g.verified.cs index 9c21b8e836..d41d52c4d6 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetCurrentInformation.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetCurrentInformation.g.verified.cs @@ -16,7 +16,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: "/"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetCurrentIp.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetCurrentIp.g.verified.cs index 6ab11d0a0c..463f5ce730 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetCurrentIp.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetCurrentIp.g.verified.cs @@ -16,7 +16,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: "/ip"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/ip", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetCurrentLocation.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetCurrentLocation.g.verified.cs index c5925a4125..73ff0d727d 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetCurrentLocation.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetCurrentLocation.g.verified.cs @@ -16,7 +16,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: "/loc"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/loc", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetCurrentOrganization.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetCurrentOrganization.g.verified.cs index d178fd3c82..3aa2631e01 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetCurrentOrganization.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetCurrentOrganization.g.verified.cs @@ -16,7 +16,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: "/org"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/org", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetCurrentPostal.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetCurrentPostal.g.verified.cs index 88a1a9c221..23a5e5ec42 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetCurrentPostal.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetCurrentPostal.g.verified.cs @@ -16,7 +16,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: "/postal"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/postal", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetCurrentRegion.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetCurrentRegion.g.verified.cs index 6f0429b683..26352d62e6 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetCurrentRegion.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetCurrentRegion.g.verified.cs @@ -16,7 +16,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: "/region"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/region", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetCurrentTimezone.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetCurrentTimezone.g.verified.cs index 5f4ade64e2..13cb17f6d2 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetCurrentTimezone.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetCurrentTimezone.g.verified.cs @@ -16,7 +16,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: "/timezone"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/timezone", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetDomains.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetDomains.g.verified.cs index 7ca202e0ac..a81258d75f 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetDomains.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetDomains.g.verified.cs @@ -22,7 +22,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/domains/{ip}?page={page}&limit={limit}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/domains/{ip}?page={page}&limit={limit}", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetHostnameByIp.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetHostnameByIp.g.verified.cs index e241092be5..e0507afd29 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetHostnameByIp.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetHostnameByIp.g.verified.cs @@ -18,7 +18,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/{ip}/hostname"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/{ip}/hostname", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetInformationByIp.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetInformationByIp.g.verified.cs index 2c16c51fb8..60a7e932a5 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetInformationByIp.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetInformationByIp.g.verified.cs @@ -18,7 +18,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/{ip}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/{ip}", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetIpByIp.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetIpByIp.g.verified.cs index 00ef8cbe15..e6d8d860ad 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetIpByIp.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetIpByIp.g.verified.cs @@ -18,7 +18,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/{ip}/ip"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/{ip}/ip", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetLocationByIp.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetLocationByIp.g.verified.cs index 91a0e48221..49d64436e9 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetLocationByIp.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetLocationByIp.g.verified.cs @@ -18,7 +18,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/{ip}/loc"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/{ip}/loc", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetOrganizationByIp.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetOrganizationByIp.g.verified.cs index b67b4aaf4a..c6f359bda5 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetOrganizationByIp.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetOrganizationByIp.g.verified.cs @@ -18,7 +18,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/{ip}/org"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/{ip}/org", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetPostalByIp.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetPostalByIp.g.verified.cs index 50474660df..0cd516023d 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetPostalByIp.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetPostalByIp.g.verified.cs @@ -18,7 +18,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/{ip}/postal"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/{ip}/postal", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetPrivacyInformationByIp.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetPrivacyInformationByIp.g.verified.cs index 52636d5d55..f8104ad68b 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetPrivacyInformationByIp.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetPrivacyInformationByIp.g.verified.cs @@ -18,7 +18,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/{ip}/privacy"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/{ip}/privacy", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetRanges.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetRanges.g.verified.cs index 6ba601a566..82cd7a452b 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetRanges.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetRanges.g.verified.cs @@ -18,7 +18,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/ranges/{domain}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/ranges/{domain}", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetRegionByIp.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetRegionByIp.g.verified.cs index c0402c6210..4325147366 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetRegionByIp.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetRegionByIp.g.verified.cs @@ -18,7 +18,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/{ip}/region"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/{ip}/region", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetTimezoneByIp.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetTimezoneByIp.g.verified.cs index 7f5ed88079..cf3b993e70 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetTimezoneByIp.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/NewtonsoftJson/_#G.Api.EndPoints.GetTimezoneByIp.g.verified.cs @@ -18,7 +18,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/{ip}/timezone"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/{ip}/timezone", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.Batch.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.Batch.g.verified.cs index 6c7fab2f4e..4c60685228 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.Batch.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.Batch.g.verified.cs @@ -16,7 +16,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: "/batch"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/batch", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetAbuse.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetAbuse.g.verified.cs index 696994570e..b3ec932eca 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetAbuse.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetAbuse.g.verified.cs @@ -18,7 +18,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/{ip}/abuse"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/{ip}/abuse", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetAsn.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetAsn.g.verified.cs index 5129be7a5b..e3fec55eae 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetAsn.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetAsn.g.verified.cs @@ -18,7 +18,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/AS{asn}/json"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/AS{asn}/json", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetCityByIp.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetCityByIp.g.verified.cs index d5968b5969..1c9bc3d46e 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetCityByIp.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetCityByIp.g.verified.cs @@ -18,7 +18,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/{ip}/city"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/{ip}/city", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetCountryByIp.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetCountryByIp.g.verified.cs index 32660572dc..fe0a98d48d 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetCountryByIp.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetCountryByIp.g.verified.cs @@ -18,7 +18,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/{ip}/country"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/{ip}/country", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetCurrentCity.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetCurrentCity.g.verified.cs index 0eb1db5a25..858ae74544 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetCurrentCity.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetCurrentCity.g.verified.cs @@ -16,7 +16,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: "/city"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/city", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetCurrentCountry.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetCurrentCountry.g.verified.cs index 9766dbdf54..f7bda5c576 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetCurrentCountry.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetCurrentCountry.g.verified.cs @@ -16,7 +16,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: "/country"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/country", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetCurrentHostname.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetCurrentHostname.g.verified.cs index d98cf72e97..0fd6c7fa86 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetCurrentHostname.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetCurrentHostname.g.verified.cs @@ -16,7 +16,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: "/hostname"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/hostname", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetCurrentInformation.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetCurrentInformation.g.verified.cs index 13aaf3d20c..44d4771506 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetCurrentInformation.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetCurrentInformation.g.verified.cs @@ -16,7 +16,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: "/"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetCurrentIp.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetCurrentIp.g.verified.cs index 6ab11d0a0c..463f5ce730 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetCurrentIp.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetCurrentIp.g.verified.cs @@ -16,7 +16,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: "/ip"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/ip", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetCurrentLocation.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetCurrentLocation.g.verified.cs index c5925a4125..73ff0d727d 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetCurrentLocation.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetCurrentLocation.g.verified.cs @@ -16,7 +16,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: "/loc"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/loc", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetCurrentOrganization.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetCurrentOrganization.g.verified.cs index d178fd3c82..3aa2631e01 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetCurrentOrganization.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetCurrentOrganization.g.verified.cs @@ -16,7 +16,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: "/org"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/org", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetCurrentPostal.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetCurrentPostal.g.verified.cs index 88a1a9c221..23a5e5ec42 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetCurrentPostal.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetCurrentPostal.g.verified.cs @@ -16,7 +16,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: "/postal"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/postal", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetCurrentRegion.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetCurrentRegion.g.verified.cs index 6f0429b683..26352d62e6 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetCurrentRegion.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetCurrentRegion.g.verified.cs @@ -16,7 +16,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: "/region"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/region", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetCurrentTimezone.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetCurrentTimezone.g.verified.cs index 5f4ade64e2..13cb17f6d2 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetCurrentTimezone.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetCurrentTimezone.g.verified.cs @@ -16,7 +16,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: "/timezone"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/timezone", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetDomains.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetDomains.g.verified.cs index f069c451ba..9234efbf9f 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetDomains.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetDomains.g.verified.cs @@ -22,7 +22,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/domains/{ip}?page={page}&limit={limit}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/domains/{ip}?page={page}&limit={limit}", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetHostnameByIp.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetHostnameByIp.g.verified.cs index e241092be5..e0507afd29 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetHostnameByIp.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetHostnameByIp.g.verified.cs @@ -18,7 +18,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/{ip}/hostname"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/{ip}/hostname", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetInformationByIp.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetInformationByIp.g.verified.cs index 8ac561e40f..ea1aed9f32 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetInformationByIp.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetInformationByIp.g.verified.cs @@ -18,7 +18,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/{ip}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/{ip}", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetIpByIp.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetIpByIp.g.verified.cs index 00ef8cbe15..e6d8d860ad 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetIpByIp.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetIpByIp.g.verified.cs @@ -18,7 +18,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/{ip}/ip"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/{ip}/ip", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetLocationByIp.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetLocationByIp.g.verified.cs index 91a0e48221..49d64436e9 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetLocationByIp.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetLocationByIp.g.verified.cs @@ -18,7 +18,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/{ip}/loc"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/{ip}/loc", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetOrganizationByIp.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetOrganizationByIp.g.verified.cs index b67b4aaf4a..c6f359bda5 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetOrganizationByIp.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetOrganizationByIp.g.verified.cs @@ -18,7 +18,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/{ip}/org"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/{ip}/org", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetPostalByIp.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetPostalByIp.g.verified.cs index 50474660df..0cd516023d 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetPostalByIp.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetPostalByIp.g.verified.cs @@ -18,7 +18,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/{ip}/postal"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/{ip}/postal", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetPrivacyInformationByIp.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetPrivacyInformationByIp.g.verified.cs index 367e4f7f2b..50e74f8a6b 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetPrivacyInformationByIp.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetPrivacyInformationByIp.g.verified.cs @@ -18,7 +18,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/{ip}/privacy"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/{ip}/privacy", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetRanges.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetRanges.g.verified.cs index 6ff114962b..17ef845e50 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetRanges.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetRanges.g.verified.cs @@ -18,7 +18,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/ranges/{domain}"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/ranges/{domain}", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetRegionByIp.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetRegionByIp.g.verified.cs index c0402c6210..4325147366 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetRegionByIp.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetRegionByIp.g.verified.cs @@ -18,7 +18,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/{ip}/region"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/{ip}/region", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetTimezoneByIp.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetTimezoneByIp.g.verified.cs index 7f5ed88079..cf3b993e70 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetTimezoneByIp.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/SystemTextJson/_#G.Api.EndPoints.GetTimezoneByIp.g.verified.cs @@ -18,7 +18,7 @@ public partial class Api { using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: $"/{ip}/timezone"); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/{ip}/timezone", global::System.UriKind.RelativeOrAbsolute)); using var response = await _httpClient.SendAsync( request: httpRequest,