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:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Follow-up ideas for the API:
|
Beta Was this translation helpful? Give feedback.
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 })
}
}); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Current proposed state:
(Vanilla) Orchestration client :
Beta Was this translation helpful? Give feedback.
All reactions