Skip to content

Commit

Permalink
Support for file names as input for requests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Uralstech committed Aug 29, 2024
1 parent 4779386 commit a6aa2e0
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ PROJECT_NAME = UGemini
# could be handy for archiving the generated documentation or if some version
# control system is used.

PROJECT_NUMBER = 2.0.0-preview.2
PROJECT_NUMBER = 2.0.0-preview.3

# Using the PROJECT_BRIEF tag one can provide an optional one line description
# for a project that appears at the top of each page and should give viewer a
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ public string GetEndpointUri(GeminiRequestMetadata metadata)
}

/// <summary>
/// Creates a new <see cref="GeminiFileGetRequest"/>.
/// Creates a new <see cref="GeminiFileDeleteRequest"/>.
/// </summary>
/// <param name="fileId">The ID of the file to delete.</param>
/// <param name="fileNameOrId">The name (format 'files/{fileId}') or ID of the file to delete.</param>
/// <param name="useBetaApi">Should the request use the Beta API?</param>
public GeminiFileDeleteRequest(string fileId, bool useBetaApi = true)
public GeminiFileDeleteRequest(string fileNameOrId, bool useBetaApi = true)
{
FileId = fileId;
FileId = fileNameOrId.Split('/')[^1];
ApiVersion = useBetaApi ? "v1beta" : "v1";
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ public string GetEndpointUri(GeminiRequestMetadata metadata)
/// <summary>
/// Creates a new <see cref="GeminiFileGetRequest"/>.
/// </summary>
/// <param name="fileId">The ID of the file to get.</param>
/// <param name="fileNameOrId">The name (format 'files/{fileId}') or ID of the file to get.</param>
/// <param name="useBetaApi">Should the request use the Beta API?</param>
public GeminiFileGetRequest(string fileId, bool useBetaApi = true)
public GeminiFileGetRequest(string fileNameOrId, bool useBetaApi = true)
{
FileId = fileId;
FileId = fileNameOrId.Split('/')[^1];
ApiVersion = useBetaApi ? "v1beta" : "v1";
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public string GetEndpointUri(GeminiRequestMetadata metadata)
}

/// <summary>
/// Creates a new <see cref="GeminiFileGetRequest"/>.
/// Creates a new <see cref="GeminiFileListRequest"/>.
/// </summary>
/// <param name="useBetaApi">Should the request use the Beta API?</param>
public GeminiFileListRequest(bool useBetaApi = true)
Expand Down
2 changes: 1 addition & 1 deletion UGemini/Packages/com.uralstech.ugemini/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"AI",
"Integration"
],
"version": "2.0.0-preview.2",
"version": "2.0.0-preview.3",
"unity": "2022.3",
"hideInEditor": false,
"documentationUrl": "https://github.com/Uralstech/UGemini/blob/master/UGemini/Packages/com.uralstech.ugemini/Documentation~/README.md",
Expand Down

0 comments on commit a6aa2e0

Please sign in to comment.