From dcb6c698e0ed1f75d785304549fa21bf8b32d25f Mon Sep 17 00:00:00 2001 From: dblock Date: Mon, 16 Dec 2024 12:35:02 -0500 Subject: [PATCH] Removed variable expansion from ML example. Signed-off-by: dblock --- .lycheeignore | 1 + tests/plugins/ml/ml/connectors.yaml | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.lycheeignore b/.lycheeignore index 1b6a61169..4c14ce320 100644 --- a/.lycheeignore +++ b/.lycheeignore @@ -1,3 +1,4 @@ https://localhost:* http://localhost:* http://webhook:8080 +https://api.openai.com/v1/chat/completions diff --git a/tests/plugins/ml/ml/connectors.yaml b/tests/plugins/ml/ml/connectors.yaml index 201019c04..c19939634 100644 --- a/tests/plugins/ml/ml/connectors.yaml +++ b/tests/plugins/ml/ml/connectors.yaml @@ -33,10 +33,10 @@ chapters: actions: - action_type: predict method: POST - url: 'https://${parameters.endpoint}/v1/chat/completions' + url: https://api.openai.com/v1/chat/completions headers: - Authorization: 'Bearer ${credential.openAI_key}' - request_body: '{ "model": "${parameters.model}", "messages": ${parameters.messages} }' + Authorization: Bearer Key + request_body: '{ "model": "model", "messages": "messages" }' response: status: 200 output: