Skip to content

Commit

Permalink
add explicit host types (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanfoxtyler authored Oct 22, 2024
1 parent a05c12b commit 32e8a62
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions modus/app-manifest.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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}}"
Expand Down
2 changes: 2 additions & 0 deletions modus/model-invoking.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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}}"
Expand All @@ -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}}",
Expand Down
1 change: 1 addition & 0 deletions modus/search.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ export function embed(texts: string[]): f32[][] {
},
"connections": {
"openai": {
"type": "http",
"baseUrl": "https://api.openai.com/",
"headers": {
"Authorization": "Bearer {{API_KEY}}"
Expand Down

0 comments on commit 32e8a62

Please sign in to comment.