mirror of
https://github.com/enricoros/big-AGI.git
synced 2026-05-10 21:50:14 -07:00
AIX: do not set a default fox max anymore - as the underlying APIs may change and it's a user param now. #1004
This commit is contained in:
@@ -7,8 +7,8 @@ import { aixSpillShallFlush, aixSpillSystemToUser, approxDocPart_To_String, appr
|
||||
|
||||
|
||||
// configuration
|
||||
const DEFAULT_WEB_FETCH_MAX_USES = 5;
|
||||
const DEFAULT_WEB_SEARCH_MAX_USES = 10;
|
||||
// const DEFAULT_WEB_FETCH_MAX_USES = 5; // we don't set a default anymore, we let it be
|
||||
// const DEFAULT_WEB_SEARCH_MAX_USES = 10; // we don't set a default anymore, we let it be
|
||||
const hotFixImagePartsFirst = true;
|
||||
const hotFixMapModelImagesToUser = true;
|
||||
const hotFixDisableThinkingWhenToolsForced = true; // "Thinking may not be enabled when tool_choice forces tool use."
|
||||
@@ -218,7 +218,8 @@ export function aixToAnthropicMessageCreate(model: AixAPI_Model, _chatGenerate:
|
||||
hostedTools.push({
|
||||
type: 'web_search_20250305',
|
||||
name: 'web_search',
|
||||
max_uses: model.vndAntWebSearchMaxUses ?? DEFAULT_WEB_SEARCH_MAX_USES, // Allow up to 10 searches by default
|
||||
...(model.vndAntWebSearchMaxUses !== undefined ? { max_uses: model.vndAntWebSearchMaxUses } : {}), // Allow up to 10 searches by default
|
||||
// max_uses: model.vndAntWebSearchMaxUses ?? DEFAULT_WEB_SEARCH_MAX_USES, // Allow up to 10 searches by default
|
||||
// Pass user geolocation for location-aware search results
|
||||
...(model.userGeolocation ? {
|
||||
user_location: { type: 'approximate' as const, ...model.userGeolocation },
|
||||
@@ -231,7 +232,8 @@ export function aixToAnthropicMessageCreate(model: AixAPI_Model, _chatGenerate:
|
||||
hostedTools.push({
|
||||
type: 'web_fetch_20250910',
|
||||
name: 'web_fetch',
|
||||
max_uses: model.vndAntWebFetchMaxUses ?? DEFAULT_WEB_FETCH_MAX_USES, // Allow up to 5 fetches by default
|
||||
...(model.vndAntWebFetchMaxUses !== undefined ? { max_uses: model.vndAntWebFetchMaxUses } : {}), // Allow up to 5 fetches by default
|
||||
// max_uses: model.vndAntWebFetchMaxUses ?? DEFAULT_WEB_FETCH_MAX_USES, // Allow up to 5 fetches by default
|
||||
citations: { enabled: true }, // Enable citations
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user