
Model import APIs
New APIs for importing Omni models across environments or connections. Important tools for the most complex deployments.
Transcript
This transcript is auto-generated. Names and product terms may be wrong.
sound off unmuted how's that everyone okay uh yeah so I was saying also inspired by another one of our customers who has like a kind of complicated git setup where they have a kind of like a following git instance and a and a leading git instance um and am I sharing yet all right fantastic um and it's complicated so we can come in here and uh you know we can just pick like any arbitrary commit from uh move stuff stuff out of the way uh we can just pick an arbitrary commit any commit that's in our get repository uh and then just to show you there's no funny business um we'll just like show you wait a minute oh this is not the right hold
on let's get to the right model oh no this is fine this is the source model this is the Target Model just to show you there's no funny business uh we'll reload this there's no branches in existence there's no model history yet in this uh model so this is like a brand new uh newly created model and then we're going to jump over here into Postman we've got a new API endpoint that we created which uh takes the source model ID right here that Source model does need to be linked to get and in particular the repo that has the commit hash that I just copied uh into my clipboard and I'm going to go ahead and paste that into this commit ref so I
can again can choose an arbitrary commit uh Target Model ID so not the company Target I just named this company Target um and uh so we got that in there we can put a commit message into that which will show up as like the description we'll see in a minute and I can optionally specify a branch name and uh we're going to go ahead and send it and this time it was successful as well it was also successful when I tested it a couple minutes ago so we're looking good uh and I'll have to refresh this because it doesn't have the context that there's a new Branch here but now there's a new Branch here boom boom boom and you can see we have Branch
history um and everybody you know should be happy I think that there's a lot of good use cases for this and look forward to uh Peter buying me a beer later some other things about it it's like you can go straight to the shared model we have some protection against you know if the Target Model is linked to git then there's some special handling to make sure that that you uh don't break any rules so any questions yes so Mark is asking could you use this if you had like a basically like two organization two orgs one that's your internal or I don't know say maybe your QA instance uh and your external embed instance and so you want to like keep models in sync
and the answer is a resounding yes like 100% we did do this maybe it wasn't clear from the demo the the trickiest part of what we had to do here was actually um making sure that the user's AP the the user associated with the API key that's in use has the permissions on both orgs and so we were it's convenient even if you are a multi-org you know multi- deployment situation we actually have a single user and so that was relatively easy to do um but it it's sort of the the one kind of really cool thing it's not just within the same instance if you will awesome thanks e