Skip to content

Commit 73b82fb

Browse files
committed
fixup! feat: add Chunk response
1 parent 43f7c12 commit 73b82fb

File tree

1 file changed

+2
-15
lines changed

1 file changed

+2
-15
lines changed

lib/llm/response/chunk.rb

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,8 @@
11
# frozen_string_literal: true
22

33
module LLM
4-
class Response::Chunk < Response
5-
##
6-
# @return [String]
7-
# Returns the model name used for the completion
8-
def model
9-
parsed[:model]
10-
end
11-
12-
##
13-
# @return [Array<LLM::Message>]
14-
# Returns an array of messages
15-
def choices
16-
parsed[:choices]
17-
end
18-
4+
require_relative "completion"
5+
class Response::Chunk < Response::Completion
196
private
207

218
##

0 commit comments

Comments
 (0)