Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
new-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
a74ab98c
authored
Nov 19, 2025
by
Seefs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: MediaResolution && VideoMetadata
parent
89a63030
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
dto/gemini.go
+11
-6
No files found.
dto/gemini.go
View file @
a74ab98c
...
@@ -141,6 +141,8 @@ func (r *GeminiChatRequest) SetTools(tools []GeminiChatTool) {
...
@@ -141,6 +141,8 @@ func (r *GeminiChatRequest) SetTools(tools []GeminiChatTool) {
type
GeminiThinkingConfig
struct
{
type
GeminiThinkingConfig
struct
{
IncludeThoughts
bool
`json:"includeThoughts,omitempty"`
IncludeThoughts
bool
`json:"includeThoughts,omitempty"`
ThinkingBudget
*
int
`json:"thinkingBudget,omitempty"`
ThinkingBudget
*
int
`json:"thinkingBudget,omitempty"`
// TODO Conflict with thinkingbudget.
// ThinkingLevel json.RawMessage `json:"thinkingLevel,omitempty"`
}
}
func
(
c
*
GeminiThinkingConfig
)
SetThinkingBudget
(
budget
int
)
{
func
(
c
*
GeminiThinkingConfig
)
SetThinkingBudget
(
budget
int
)
{
...
@@ -206,12 +208,15 @@ type GeminiFileData struct {
...
@@ -206,12 +208,15 @@ type GeminiFileData struct {
}
}
type
GeminiPart
struct
{
type
GeminiPart
struct
{
Text
string
`json:"text,omitempty"`
Text
string
`json:"text,omitempty"`
Thought
bool
`json:"thought,omitempty"`
Thought
bool
`json:"thought,omitempty"`
InlineData
*
GeminiInlineData
`json:"inlineData,omitempty"`
InlineData
*
GeminiInlineData
`json:"inlineData,omitempty"`
FunctionCall
*
FunctionCall
`json:"functionCall,omitempty"`
FunctionCall
*
FunctionCall
`json:"functionCall,omitempty"`
ThoughtSignature
json
.
RawMessage
`json:"thoughtSignature,omitempty"`
ThoughtSignature
json
.
RawMessage
`json:"thoughtSignature,omitempty"`
FunctionResponse
*
GeminiFunctionResponse
`json:"functionResponse,omitempty"`
FunctionResponse
*
GeminiFunctionResponse
`json:"functionResponse,omitempty"`
// Optional. Media resolution for the input media.
MediaResolution
json
.
RawMessage
`json:"mediaResolution,omitempty"`
VideoMetadata
json
.
RawMessage
`json:"videoMetadata,omitempty"`
FileData
*
GeminiFileData
`json:"fileData,omitempty"`
FileData
*
GeminiFileData
`json:"fileData,omitempty"`
ExecutableCode
*
GeminiPartExecutableCode
`json:"executableCode,omitempty"`
ExecutableCode
*
GeminiPartExecutableCode
`json:"executableCode,omitempty"`
CodeExecutionResult
*
GeminiPartCodeExecutionResult
`json:"codeExecutionResult,omitempty"`
CodeExecutionResult
*
GeminiPartCodeExecutionResult
`json:"codeExecutionResult,omitempty"`
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment