Orchestration client API #44
Closed
KavithaSiva
started this conversation in
Ideas
Replies: 3 comments 2 replies
|
Proposal 1: Use functions along with generated orchestration client client.chatCompletion({
deploymentConfiguration: { deploymentId: 'id' },
orchestration_config: {
module_configurations: {
templating_module_config: {
template: [{ role: 'user', content: 'Am I {{?usr}}?' }]
},
llm_module_config: {
model_name: 'gpt-35-turbo-16k',
model_params: { max_tokens: 50, temperature: 0.1 }
},
createFilterConfig(
createInputFilter({ type: 'azureContentSafety', config: { Hate: 0, SelfHarm: 2}}),
createOutputFilter({ type: 'azureContentSafety', config: { Sexual: 4, Violence: 6 }})
)
},
input_params: { usr: 'Alice' },
messages_history: [
{
role: 'system',
content:
'You are a helpful assistant who remembers all details the user shares with you.'
},
{
role: 'user',
content: 'Hi! Im Bob'
},
{
role: 'assistant',
content:
"Hi Bob, nice to meet you! I'm an AI assistant. I'll remember that your name is Bob as we continue our conversation."
}
]
})
);Pros:
Cons:
Doubts:
|
0 replies
|
Follow-up ideas for the API:
|
2 replies
|
The following structure was finalised for the Orchestration client: client.chatCompletion({
deploymentConfiguration: { deploymentId: 'id' },
llmConfig: {
model_name: 'gpt-35-turbo-16k',
model_params: { max_tokens: 50, temperature: 0.1 }
},
prompt: {
template: [{ role: 'user', content: 'What is the capital of Germany?' }]
},
filterConfig: {
input: azureContentFilter({ Hate: 4, SelfHarm: 2 }),
output: azureContentFilter({ Sexual: 0, Violence: 6 })
}
}); |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Current proposed state:
(Vanilla) Orchestration client :
All reactions