-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add azureChat and ollamaChat to functionSignatures.json
- Loading branch information
Showing
1 changed file
with
120 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,122 @@ | ||
{ | ||
"_schemaVersion": "1.0.0", | ||
"openAIChat.openAIChat": | ||
{ | ||
"inputs": | ||
[ | ||
{"name":"systemPrompt","kind":"ordered","type":["string","scalar"]}, | ||
{"name":"Tools","kind":"namevalue","type":"openAIFunction"}, | ||
{"name":"ModelName","kind":"namevalue","type":"choices=llms.openai.models"}, | ||
{"name":"Temperature","kind":"namevalue","type":["numeric","scalar",">=0","<=2"]}, | ||
{"name":"TopProbabilityMass","kind":"namevalue","type":["numeric","scalar",">=0","<=1"]}, | ||
{"name":"StopSequences","kind":"namevalue","type":["string","vector"]}, | ||
{"name":"ResponseFormat","kind":"namevalue","type":"choices={'text','json'}"}, | ||
{"name":"ApiKey","kind":"namevalue","type":["string","scalar"]}, | ||
{"name":"PresencePenalty","kind":"namevalue","type":["numeric","scalar","<=2",">=-2"]}, | ||
{"name":"FrequencyPenalty","kind":"namevalue","type":["numeric","scalar","<=2",">=-2"]}, | ||
{"name":"TimeOut","kind":"namevalue","type":["numeric","scalar","real","positive"]}, | ||
{"name":"StreamFun","kind":"namevalue","type":"function_handle"} | ||
], | ||
"outputs": | ||
[ | ||
{"name":"this","type":"openAIChat"} | ||
] | ||
}, | ||
"openAIChat.generate": | ||
{ | ||
"inputs": | ||
[ | ||
{"name":"this","kind":"required","type":["openAIChat","scalar"]}, | ||
{"name":"messages","kind":"required","type":[["openAIMessages","row"],["string","scalar"]]}, | ||
{"name":"NumCompletions","kind":"namevalue","type":["numeric","scalar","integer","positive"]}, | ||
{"name":"MaxNumTokens","kind":"namevalue","type":["numeric","scalar","positive"]}, | ||
{"name":"ToolChoice","kind":"namevalue","type":"choices=[\"none\",\"auto\",this.FunctionNames]"}, | ||
{"name":"Seed","kind":"namevalue","type":["numeric","integer","scalar"]} | ||
], | ||
"outputs": | ||
[ | ||
{"name":"text","type":"string"}, | ||
{"name":"message","type":"struct"}, | ||
{"name":"response","type":"matlab.net.http.ResponseMessage"} | ||
] | ||
} | ||
"_schemaVersion": "1.0.0", | ||
"openAIChat.openAIChat": | ||
{ | ||
"inputs": | ||
[ | ||
{"name":"systemPrompt","kind":"ordered","type":["string","scalar"]}, | ||
{"name":"Tools","kind":"namevalue","type":"openAIFunction"}, | ||
{"name":"ModelName","kind":"namevalue","type":"choices=llms.openai.models"}, | ||
{"name":"Temperature","kind":"namevalue","type":["numeric","scalar",">=0","<=2"]}, | ||
{"name":"TopProbabilityMass","kind":"namevalue","type":["numeric","scalar",">=0","<=1"]}, | ||
{"name":"StopSequences","kind":"namevalue","type":["string","vector"]}, | ||
{"name":"ResponseFormat","kind":"namevalue","type":"choices={'text','json'}"}, | ||
{"name":"ApiKey","kind":"namevalue","type":["string","scalar"]}, | ||
{"name":"PresencePenalty","kind":"namevalue","type":["numeric","scalar","<=2",">=-2"]}, | ||
{"name":"FrequencyPenalty","kind":"namevalue","type":["numeric","scalar","<=2",">=-2"]}, | ||
{"name":"TimeOut","kind":"namevalue","type":["numeric","scalar","real","positive"]}, | ||
{"name":"StreamFun","kind":"namevalue","type":"function_handle"} | ||
], | ||
"outputs": | ||
[ | ||
{"name":"this","type":"openAIChat"} | ||
] | ||
}, | ||
"openAIChat.generate": | ||
{ | ||
"inputs": | ||
[ | ||
{"name":"this","kind":"required","type":["openAIChat","scalar"]}, | ||
{"name":"messages","kind":"required","type":[["openAIMessages","row"],["string","scalar"]]}, | ||
{"name":"NumCompletions","kind":"namevalue","type":["numeric","scalar","integer","positive"]}, | ||
{"name":"MaxNumTokens","kind":"namevalue","type":["numeric","scalar","positive"]}, | ||
{"name":"ToolChoice","kind":"namevalue","type":"choices=[\"none\",\"auto\",this.FunctionNames]"}, | ||
{"name":"Seed","kind":"namevalue","type":["numeric","integer","scalar"]} | ||
], | ||
"outputs": | ||
[ | ||
{"name":"text","type":"string"}, | ||
{"name":"message","type":"struct"}, | ||
{"name":"response","type":"matlab.net.http.ResponseMessage"} | ||
] | ||
}, | ||
"azureChat.azureChat": | ||
{ | ||
"inputs": | ||
[ | ||
{"name":"endpoint","kind":"positional","type":["string","scalar"]}, | ||
{"name":"deploymentID","kind":"positional","type":["string","scalar"]}, | ||
{"name":"systemPrompt","kind":"ordered","type":["string","scalar"]}, | ||
{"name":"Tools","kind":"namevalue","type":"openAIFunction"}, | ||
{"name":"APIVersion","kind":"namevalue","type":"choices=llms.azure.apiVersions"}, | ||
{"name":"Temperature","kind":"namevalue","type":["numeric","scalar",">=0","<=2"]}, | ||
{"name":"TopProbabilityMass","kind":"namevalue","type":["numeric","scalar",">=0","<=1"]}, | ||
{"name":"StopSequences","kind":"namevalue","type":["string","vector"]}, | ||
{"name":"ResponseFormat","kind":"namevalue","type":"choices={'text','json'}"}, | ||
{"name":"ApiKey","kind":"namevalue","type":["string","scalar"]}, | ||
{"name":"PresencePenalty","kind":"namevalue","type":["numeric","scalar","<=2",">=-2"]}, | ||
{"name":"FrequencyPenalty","kind":"namevalue","type":["numeric","scalar","<=2",">=-2"]}, | ||
{"name":"TimeOut","kind":"namevalue","type":["numeric","scalar","real","positive"]}, | ||
{"name":"StreamFun","kind":"namevalue","type":"function_handle"} | ||
], | ||
"outputs": | ||
[ | ||
{"name":"this","type":"azureChat"} | ||
] | ||
}, | ||
"azureChat.generate": | ||
{ | ||
"inputs": | ||
[ | ||
{"name":"this","kind":"required","type":["azureChat","scalar"]}, | ||
{"name":"messages","kind":"required","type":[["openAIMessages","row"],["string","scalar"]]}, | ||
{"name":"NumCompletions","kind":"namevalue","type":["numeric","scalar","integer","positive"]}, | ||
{"name":"MaxNumTokens","kind":"namevalue","type":["numeric","scalar","positive"]}, | ||
{"name":"ToolChoice","kind":"namevalue","type":"choices=[\"none\",\"auto\",this.FunctionNames]"}, | ||
{"name":"Seed","kind":"namevalue","type":["numeric","integer","scalar"]} | ||
], | ||
"outputs": | ||
[ | ||
{"name":"text","type":"string"}, | ||
{"name":"message","type":"struct"}, | ||
{"name":"response","type":"matlab.net.http.ResponseMessage"} | ||
] | ||
}, | ||
"ollamaChat.ollamaChat": | ||
{ | ||
"inputs": | ||
[ | ||
{"name":"model","kind":"positional","type":"choices=ollamaChat.models"}, | ||
{"name":"systemPrompt","kind":"ordered","type":["string","scalar"]}, | ||
{"name":"Temperature","kind":"namevalue","type":["numeric","scalar",">=0","<=2"]}, | ||
{"name":"TopProbabilityMass","kind":"namevalue","type":["numeric","scalar",">=0","<=1"]}, | ||
{"name":"TopProbabilityNum","kind":"namevalue","type":["numeric","scalar","integer",">=1"]}, | ||
{"name":"StopSequences","kind":"namevalue","type":["string","vector"]}, | ||
{"name":"ResponseFormat","kind":"namevalue","type":"choices={'text','json'}"}, | ||
{"name":"TailFreeSamplingZ","kind":"namevalue","type":["numeric","scalar","real"]}, | ||
{"name":"TimeOut","kind":"namevalue","type":["numeric","scalar","real","positive"]}, | ||
{"name":"StreamFun","kind":"namevalue","type":"function_handle"} | ||
], | ||
"outputs": | ||
[ | ||
{"name":"this","type":"ollamaChat"} | ||
] | ||
}, | ||
"ollamaChat.generate": | ||
{ | ||
"inputs": | ||
[ | ||
{"name":"this","kind":"required","type":["ollamaChat","scalar"]}, | ||
{"name":"messages","kind":"required","type":[["openAIMessages","row"],["string","scalar"]]}, | ||
{"name":"NumCompletions","kind":"namevalue","type":["numeric","scalar","integer","positive"]}, | ||
{"name":"MaxNumTokens","kind":"namevalue","type":["numeric","scalar","positive"]}, | ||
{"name":"Seed","kind":"namevalue","type":["numeric","integer","scalar"]} | ||
], | ||
"outputs": | ||
[ | ||
{"name":"text","type":"string"}, | ||
{"name":"message","type":"struct"}, | ||
{"name":"response","type":"matlab.net.http.ResponseMessage"} | ||
] | ||
} | ||
} |