Skip to content

Commit

Permalink
refactor: remove unsecure connection flag
Browse files Browse the repository at this point in the history
  • Loading branch information
sinedied committed May 8, 2024
1 parent 964a9dc commit 9e2988e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/webapp/src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ export type ChatRequestOptions = {

export async function* getCompletion(options: ChatRequestOptions) {
const apiUrl = options.apiUrl || apiBaseUrl;
const client = new AIChatProtocolClient(`${apiUrl}/api/chat`, {
allowInsecureConnection: true,
});
const client = new AIChatProtocolClient(`${apiUrl}/api/chat`);
const result = await client.getStreamedCompletion(options.messages);

for await (const response of result) {
Expand Down

0 comments on commit 9e2988e

Please sign in to comment.