You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`You are an expert at documentation for libraries. Given a user's query return a list of (library name, topic) where each library name is the name of a library and topic is a keyword or phrase that specifies a topic within the library that is most relevant to the user's query.
149
170
@@ -163,9 +184,11 @@ ${closeXml('user_query')}
163
184
constgeminiStartTime=Date.now()
164
185
try{
165
186
constresponse=awaitpromptAiSdkStructured({
166
-
...options,
167
187
messages: [{role: 'user',content: prompt}],
168
-
userId: options.userId,
188
+
clientSessionId,
189
+
userInputId,
190
+
fingerprintId,
191
+
userId,
169
192
model: models.openrouter_gemini2_5_flash,
170
193
temperature: 0,
171
194
schema: z.object({
@@ -198,16 +221,24 @@ ${closeXml('user_query')}
198
221
* @param options Common request options including session and user identifiers.
199
222
* @returns A promise that resolves to an object containing the relevant chunks and Gemini call duration, or null if an error occurs.
constprompt=`You are an expert at analyzing documentation queries. Given a user's query and a list of documentation chunks, determine which chunks are relevant to the query. Choose as few chunks as possible, likely none. Only include chunks if they are relevant to the user query.
0 commit comments