Skip to content

Commit

Permalink
Remove unused await
Browse files Browse the repository at this point in the history
  • Loading branch information
stefl committed Dec 19, 2024
1 parent 86c0864 commit c65447f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/aila/src/core/llm/OpenAIService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export class OpenAIService implements LLMService {
messages: Message[];
temperature: number;
}): Promise<ReadableStreamDefaultReader<string>> {
const { textStream: stream } = await streamText({
const { textStream: stream } = streamText({
model: this._openAIProvider(params.model),
messages: params.messages.map((m) => ({
role: m.role,
Expand All @@ -53,7 +53,7 @@ export class OpenAIService implements LLMService {
return this.createChatCompletionStream({ model, messages, temperature });
}
const startTime = Date.now();
const { textStream: stream } = await streamObject({
const { textStream: stream } = streamObject({
model: this._openAIProvider(model, { structuredOutputs: true }),
output: "object",
schema,
Expand Down

0 comments on commit c65447f

Please sign in to comment.