mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-11-23 13:50:20 +00:00
Added support for OpenAI models, which are hosted on-premises
This commit is contained in:
parent
152470a3f1
commit
9d9441d898
@ -174,6 +174,32 @@ public static class CapabilitiesOpenSource
|
|||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// OpenAI models:
|
||||||
|
//
|
||||||
|
if (modelName.IndexOf("gpt-oss") is not -1 ||
|
||||||
|
modelName.IndexOf("gpt-3.5") is not -1)
|
||||||
|
{
|
||||||
|
if(modelName.IndexOf("gpt-oss") is not -1)
|
||||||
|
return
|
||||||
|
[
|
||||||
|
Capability.TEXT_INPUT,
|
||||||
|
Capability.TEXT_OUTPUT,
|
||||||
|
|
||||||
|
Capability.FUNCTION_CALLING,
|
||||||
|
Capability.CHAT_COMPLETION_API,
|
||||||
|
];
|
||||||
|
|
||||||
|
if(modelName.IndexOf("gpt-3.5") is not -1)
|
||||||
|
return
|
||||||
|
[
|
||||||
|
Capability.TEXT_INPUT,
|
||||||
|
Capability.TEXT_OUTPUT,
|
||||||
|
|
||||||
|
Capability.CHAT_COMPLETION_API,
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
// Default:
|
// Default:
|
||||||
return [
|
return [
|
||||||
Capability.TEXT_INPUT, Capability.TEXT_OUTPUT,
|
Capability.TEXT_INPUT, Capability.TEXT_OUTPUT,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user