fix: fix linting errors
This commit is contained in:
parent
389a51e05d
commit
77068575d7
@ -128,7 +128,7 @@ def process_response(
|
||||
message=message_obj,
|
||||
)
|
||||
choices_list.append(choice_obj)
|
||||
model_response.choices = choices_list
|
||||
model_response.choices = choices_list # type: ignore
|
||||
|
||||
except Exception as e:
|
||||
raise ClarifaiError(
|
||||
|
||||
@ -388,7 +388,7 @@ def process_response(
|
||||
|
||||
## Building RESPONSE OBJECT
|
||||
if len(result) > 1:
|
||||
model_response.choices[0].message.content = result # type :ignore
|
||||
model_response.choices[0].message.content = result # type: ignore
|
||||
|
||||
# Calculate usage
|
||||
prompt_tokens = len(encoding.encode(prompt, disallowed_special=()))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user