Repository navigation
Not planned
Description
想要什么,用来做什么 / What you want and what for
想要什么,用来做什么 / What you want and what for
Protocol-level capabilities present in current AI Studio web bundles (m_b.js / YUh4Se.js) and live v0.3.17 traffic that are not yet wired in AIStudio2API:
-
Grounding with Google Lens (
SearchTypesfield3, capability97, tool ID10)- In
m_b.js(@556174,@1581538) andYUh4Se.js(ZCf):ListModelscapability code97enablesGrounding with Google Lens;field 48toolNamescode10maps to Google Lens (currentlyinternal/aistudio/models.go:497maps1,2,3,5,6,7,8and omits10).GoogleSearch(_.en) ->SearchTypes(_.Gv, field2/ index1) has 3 entries:- field
1(index0):webSearch(y_a) - field
2(index1):imageSearch(z_a) - field
3(index2):lensSearch(A_a:[]) — currentlyinternal/aistudio/tools.go:152-169(encodeSearchTool) only encodes indices0and1.
- field
- In
-
Native Transparent / Opaque PNG Background Generation (capability
102)- In
m_b.js(iQb@1583176&TIa@319114):GenerateContentImageConfig(_.xYa,GenerationConfigfield27/ index26):- field
1(index0):aspectRatio - field
2(index1):imageSize - field
3(index2):backgroundenum (1=auto,2=transparent,3=opaque) — gated bycapability_code_102.
- field
Interactions(CreateInteraction/CreateInteractionStream):outputFormat(interactionfield54/55,_.Eqfield3/ index2) ->_.QIafield6(index5):1=auto,2=transparent,3=opaque.
- Currently
internal/aistudio/generate.go:467(encodeImageConfig),internal/aistudio/interaction.go:327, andinternal/api/media.go:34(openAIImageRequestfor/v1/images/generations&/v1/images/edits, which has standard OpenAIbackground: "transparent" | "opaque" | "auto") do not encode or exposebackground.
- In
-
GenerateContentVideoConfig (GenerationConfigfield28/ index27,_.IYa)- In
m_b.js(iQb@1583176): for models withsecondary_capability_code_14 && secondary_capability_code_17,GenerationConfigfield28(index27,WYa) encodes_.IYa:- field
5(index4):fps(1="24fps") - field
6(index5):aspectRatio(string) - field
7(index6):duration(google.protobuf.Duration[seconds]) - field
8(index7):resolution(1="368p",2="720p")
- field
- Currently
encodeGenerationConfig(internal/aistudio/generate.go:270-355) leaveswire[27]empty.
- In
-
Build-channel Live (
build_bidi.go), multimodalclientContent.turns, and Livemessage[8]frameEncodeBuildBidiSetup(internal/aistudio/build_bidi.go:70-110) hardcodesbidiVariantConversationand fallback"Zephyr", omittingDefaultVoice,ProactiveAudio/Video,AffectiveDialog,TurnCoverage,Translation,Transcription, and customvoice_/voicekey_voices;liveFrame(build_bidi.go:173) also blocksclient_contentandcontext_updateon Build Live even thoughproxy:proxyBidiStreamedCallforwards official Gemini Live JSON directly.geminiLiveTexts(internal/api/live_gemini.go:336-348) rejects non-text (inlineData) parts inclientContent.turns, whereasYUh4Se.js(hpi/_.GMc/EMc) supports multimodalContentturns bound viaparts.map(_.$n).join(" ").- In live
v0.3.17sessions (gemini-4-live&gemini-3.1-flash-live-preview), upstream WebChannel emits[null,null,null,null,null,null,null,null,["1"]]/["2"](message[8], field9) on every turn, which currently falls into rawprovideron/v1/live.
-
(Reference — Interactive Video / Genie 4 transport in
YUh4Se.js)- Uses either
MakerSuiteService/StartInteractiveVideoWebRtcSession(_.ckb) or WebChannel/v1/interactiveVideoBidiStream(useFetchStreams: true,Apioneof[1=setup(zpi: [model, prompt, refImageBlob]), 2=text, 3=keyDown, 5=keyUp], WAA binding$oi).
- Uses either
版本 / Version
v0.3.17 (5deae85)
Metadata
Metadata
Assignees
Labels
No labels
Activity
github-actions commentedon Dec 3, 2026
每人最多同时打开 3 个 Issue,这个 Issue 已自动关闭。请等已有的 Issue 处理完再提,或把内容补充到已有的 Issue 里。
Each user can have at most 3 open issues at a time, so this one was closed automatically. Please wait until your existing issues are resolved, or add this to one of them.