Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
marikaner committed Aug 27, 2024
1 parent 133d2af commit 1765ac2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sample-code/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import express from 'express';
import { chatCompletion, computeEmbedding } from './aiservice.js';
import { orchestrationCompletion } from './orchestration.js';
import { getDeployments } from './ai-core.js';

const app = express();
const port = 8080;
Expand Down Expand Up @@ -49,7 +50,7 @@ app.get('/orchestration', async (req, res) => {

app.get('/ai-core/get-deployments', async (req, res) => {
try {
res.send(await chatCompletion());
res.send(await getDeployments());
} catch (error: any) {
console.error(error);
res
Expand Down

0 comments on commit 1765ac2

Please sign in to comment.