Enhance token refresh functionality across multiple executors
- Updated refreshCredentials methods in various executors (Antigravity, Base, Default, Github, Kiro) to accept optional proxyOptions for improved proxy handling. - Modified token refresh logic to utilize proxy-aware fetch for better network management. - Enhanced usage retrieval functions to support proxy options, ensuring seamless integration with proxy configurations. - Updated ModelSelectModal and ProviderInfoCard components to incorporate kind filtering for improved user experience in model selection. - Added validation for API keys in the provider validation route, including support for webSearch/webFetch providers.
This commit is contained in:
21
src/app/api/v1/search/route.js
Normal file
21
src/app/api/v1/search/route.js
Normal file
@@ -0,0 +1,21 @@
|
||||
import { handleSearch } from "@/sse/handlers/search.js";
|
||||
|
||||
/**
|
||||
* Handle CORS preflight
|
||||
*/
|
||||
export async function OPTIONS() {
|
||||
return new Response(null, {
|
||||
headers: {
|
||||
"Access-Control-Allow-Origin": "*",
|
||||
"Access-Control-Allow-Methods": "POST, OPTIONS",
|
||||
"Access-Control-Allow-Headers": "*"
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* POST /v1/search - Web search endpoint
|
||||
*/
|
||||
export async function POST(request) {
|
||||
return await handleSearch(request);
|
||||
}
|
||||
21
src/app/api/v1/web/fetch/route.js
Normal file
21
src/app/api/v1/web/fetch/route.js
Normal file
@@ -0,0 +1,21 @@
|
||||
import { handleFetch } from "@/sse/handlers/fetch.js";
|
||||
|
||||
/**
|
||||
* Handle CORS preflight
|
||||
*/
|
||||
export async function OPTIONS() {
|
||||
return new Response(null, {
|
||||
headers: {
|
||||
"Access-Control-Allow-Origin": "*",
|
||||
"Access-Control-Allow-Methods": "POST, OPTIONS",
|
||||
"Access-Control-Allow-Headers": "*"
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* POST /v1/web/fetch - Web URL fetch/extract endpoint
|
||||
*/
|
||||
export async function POST(request) {
|
||||
return await handleFetch(request);
|
||||
}
|
||||
Reference in New Issue
Block a user