SebSchroen commited on
Commit
2e277cb
·
unverified ·
1 Parent(s): 8019701

Fix: tools in endpointVertex now optional (#1234)

Browse files

The googleSearchRetrieval leads to very odd behavior when chatting with Gemini, making the argument optional and removing it for certain use cases fixes the issue

README.md CHANGED
@@ -771,6 +771,7 @@ MODELS=`[
771
  // Optional
772
  "safetyThreshold": "BLOCK_MEDIUM_AND_ABOVE",
773
  "apiEndpoint": "", // alternative api endpoint url,
 
774
  "tools": [{
775
  "googleSearchRetrieval": {
776
  "disableAttribution": true
 
771
  // Optional
772
  "safetyThreshold": "BLOCK_MEDIUM_AND_ABOVE",
773
  "apiEndpoint": "", // alternative api endpoint url,
774
+ // Optional
775
  "tools": [{
776
  "googleSearchRetrieval": {
777
  "disableAttribution": true
src/lib/server/endpoints/google/endpointVertex.ts CHANGED
@@ -26,7 +26,7 @@ export const endpointVertexParametersSchema = z.object({
26
  HarmBlockThreshold.BLOCK_ONLY_HIGH,
27
  ])
28
  .optional(),
29
- tools: z.array(z.any()),
30
  });
31
 
32
  export function endpointVertex(input: z.input<typeof endpointVertexParametersSchema>): Endpoint {
 
26
  HarmBlockThreshold.BLOCK_ONLY_HIGH,
27
  ])
28
  .optional(),
29
+ tools: z.array(z.any()).optional(),
30
  });
31
 
32
  export function endpointVertex(input: z.input<typeof endpointVertexParametersSchema>): Endpoint {