docs: add upage usage instructions document

This commit is contained in:
LIlGG
2025-09-26 18:49:06 +08:00
parent 2dd64bc065
commit f4d6e383ce
12 changed files with 273 additions and 102 deletions

View File

@@ -13,7 +13,7 @@ export default class LMStudioProvider extends BaseProvider {
config = {
baseUrlKey: 'LMSTUDIO_API_BASE_URL',
baseUrl: 'http://localhost:1234/',
baseUrl: 'http://127.0.0.1:1234/',
};
staticModels: ModelInfo[] = [];

View File

@@ -39,10 +39,6 @@ export default class OllamaProvider extends BaseProvider {
staticModels: ModelInfo[] = [];
getDefaultNumCtx(): number {
return process.env.DEFAULT_NUM_CTX ? parseInt(process.env.DEFAULT_NUM_CTX, 10) : 32768;
}
async getDynamicModels(apiKeys?: Record<string, string>, settings?: IProviderSetting): Promise<ModelInfo[]> {
let { baseUrl } = this.getProviderBaseUrlAndKey({
apiKeys,

View File

@@ -86,7 +86,7 @@ export const gitInfoLoader: LoaderFunction = async ({
if (action === 'getUser' || action === 'getRepos' || action === 'getOrgs' || action === 'getActivity') {
// Use server-side token instead of client-side token
const serverGithubToken = process.env.GITHUB_ACCESS_TOKEN || context.env?.GITHUB_ACCESS_TOKEN;
const serverGithubToken = context.env?.GITHUB_ACCESS_TOKEN;
const cookieToken = request.headers
.get('Cookie')
?.split(';')