Skip to content

Commit

Permalink
add azureChat and ollamaChat to functionSignatures.json
Browse files Browse the repository at this point in the history
  • Loading branch information
ccreutzi committed Jun 5, 2024
1 parent e51f5eb commit 08a8549
Showing 1 changed file with 120 additions and 41 deletions.
161 changes: 120 additions & 41 deletions functionSignatures.json
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"}
]
}
}

0 comments on commit 08a8549

Please sign in to comment.