We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c3ba74c commit 94cb887Copy full SHA for 94cb887
src/libs/agent-runtime/cohere/index.ts
@@ -5,7 +5,7 @@ import type { ChatModelCard } from '@/types/llm';
5
6
export interface CohereModelCard {
7
context_length: number;
8
- features: string[];
+ features: string[] | null;
9
name: string;
10
supports_vision: boolean;
11
}
@@ -47,7 +47,7 @@ export const LobeCohereAI = LobeOpenAICompatibleFactory({
47
displayName: knownModel?.displayName ?? undefined,
48
enabled: knownModel?.enabled || false,
49
functionCall:
50
- model.features.includes("tools")
+ (model.features && model.features.includes("tools"))
51
|| knownModel?.abilities?.functionCall
52
|| false,
53
id: model.name,
0 commit comments