Merge pull request #3159 from continuedev/nate/pred-output

support predicted outputs for other models
This commit is contained in:
Nate Sesti 2024-12-03 21:16:31 -08:00 • committed by GitHub
commit 0aa46c3fd1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -105,7 +105,8 @@ class OpenAI extends BaseLLM {
}
protected supportsPrediction(model: string): boolean {
return ["gpt-4o-mini", "gpt-4o"].includes(model);
const SUPPORTED_MODELS = ["gpt-4o-mini", "gpt-4o", "mistral-large"];
return SUPPORTED_MODELS.some((m) => model.includes(m));
}
private convertTool(tool: Tool): any {