OpenAI: retrieveModel

This commit is contained in:
Matt Aitken
2023-06-22 15:51:31 +01:00
parent 010ac6e5b6
commit cd852f9563
3 changed files with 71 additions and 34 deletions
+5 -1
View File
@@ -20,7 +20,11 @@ new Job(client, {
openai,
},
run: async (payload, io, ctx) => {
await io.openai.listModels("list-models");
const models = await io.openai.listModels("list-models");
await io.openai.retrieveModel("get-model", {
model: models[0].id,
});
await io.openai.backgroundCreateChatCompletion(
"background-chat-completion",