Skip to content

Commit

Permalink
🐛 fix: fix lmstudio baseURL (#5988)
Browse files Browse the repository at this point in the history
* fix lmstudio

* fix lmstudio
  • Loading branch information
arvinxx authored Feb 10, 2025
1 parent 79964b7 commit 1d19aa6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/libs/agent-runtime/lmstudio/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import * as debugStreamModule from '../utils/debugStream';
import { LobeLMStudioAI } from './index';

const provider = ModelProvider.LMStudio;
const defaultBaseURL = 'http://localhost:1234/v1';
const defaultBaseURL = 'http://127.0.0.1:1234/v1';

const bizErrorType = 'ProviderBizError';
const invalidErrorType = 'InvalidProviderAPIKey';
Expand Down
2 changes: 1 addition & 1 deletion src/libs/agent-runtime/lmstudio/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { LobeOpenAICompatibleFactory } from '../utils/openaiCompatibleFactory';

export const LobeLMStudioAI = LobeOpenAICompatibleFactory({
apiKey: 'placeholder-to-avoid-error',
baseURL: 'http://localhost:1234/v1',
baseURL: 'http://127.0.0.1:1234/v1',
debug: {
chatCompletion: () => process.env.DEBUG_LMSTUDIO_CHAT_COMPLETION === '1',
},
Expand Down

0 comments on commit 1d19aa6

Please # to comment.