Merge pull request #105 from continuedev/fix-chad-bug
include models without roles
This commit is contained in:
commit
a62e71cc43
1 changed files with 3 additions and 2 deletions
|
|
@ -30,8 +30,9 @@ export function getLlmApi(
|
|||
assistant: AssistantUnrolled,
|
||||
authConfig: AuthConfig
|
||||
): [BaseLlmApi, ModelConfig] {
|
||||
const model = assistant.models?.find((model) =>
|
||||
model?.roles?.includes("chat")
|
||||
const model = assistant.models?.find(
|
||||
(model) =>
|
||||
model?.roles?.includes("chat") || (model && model.roles === undefined)
|
||||
);
|
||||
|
||||
if (!model) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue