-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add glhf.chat to bolt.diy #968
base: main
Are you sure you want to change the base?
Conversation
add glhf.chat service to providers
add glhf.chat service to providers
add glhf.chat to bolt.diy
): Promise<ModelInfo[]> { | ||
// Retornamos apenas os modelos estáticos, evitando duplicação | ||
return this.staticModels; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
delete this function getDynamicModels
if no dynamic models added
|
||
// Usa o primeiro modelo como padrão se nenhum for especificado | ||
const modelToUse = model || this.staticModels[0].name; | ||
return getOpenAILikeModel(effectiveBaseUrl, apiKey, modelToUse); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const modelToUse = model || this.staticModels[0].name;
no need for a fallback model as this is already handled in the core framework.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Techno-Trek as I see this is not fixed already. Can you do? :)
throw error; | ||
} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whats the use of this function, its not being used anywhere
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was using this to test the API connection because the glhf service was undergoing modifications and I ended up not removing it, but I will make the suggested changes and also the tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes mentioned by @thecodacus not done yet.
I added the open model execution service, all tests have already been carried out.
Some models were selected but others may be added later.
What was done:
The service provider has been added to the directory:
bolt.diy\app\lib\modules\llm\providers\glhf.chat.ts
The new service provider configuration was added to the file:
bolt.diy\app\lib\modules\llm\registry.ts
The API settings and access link were added to the file:
bolt.diy.env.example