From a230c707958bc8a567cdf531adbec075a55dcb69 Mon Sep 17 00:00:00 2001 From: Ryan Fox-Tyler <60440289+ryanfoxtyler@users.noreply.github.com> Date: Tue, 22 Oct 2024 09:04:08 -0400 Subject: [PATCH] add explicit host types --- modus/app-manifest.mdx | 1 + modus/model-invoking.mdx | 2 ++ modus/search.mdx | 1 + 3 files changed, 4 insertions(+) diff --git a/modus/app-manifest.mdx b/modus/app-manifest.mdx index ada95f77..3fa949e3 100644 --- a/modus/app-manifest.mdx +++ b/modus/app-manifest.mdx @@ -136,6 +136,7 @@ invoke externally hosted AI [models](/modus/sdk/models). { "connections": { "openai": { + "type": "http", "baseUrl": "https://api.openai.com/", "headers": { "Authorization": "Bearer {{API_KEY}}" diff --git a/modus/model-invoking.mdx b/modus/model-invoking.mdx index 26a6d656..e9431d8c 100644 --- a/modus/model-invoking.mdx +++ b/modus/model-invoking.mdx @@ -51,6 +51,7 @@ examples: // for externally hosted models, explicitly define the connection "connections": { "openai": { + "type": "http", "baseUrl": "https://api.openai.com/", "headers": { "Authorization": "Bearer {{API_KEY}}" @@ -75,6 +76,7 @@ examples: // for externally hosted models, explicitly define the connection "connections": { "anthropic": { + "type": "http", "baseUrl": "https://api.anthropic.com/", "headers": { "x-api-key": "{{API_KEY}}", diff --git a/modus/search.mdx b/modus/search.mdx index 5437397d..e80dfecc 100644 --- a/modus/search.mdx +++ b/modus/search.mdx @@ -188,6 +188,7 @@ export function embed(texts: string[]): f32[][] { }, "connections": { "openai": { + "type": "http", "baseUrl": "https://api.openai.com/", "headers": { "Authorization": "Bearer {{API_KEY}}"