Skip to content

Commit

Permalink
fix litellm use deafault chat delta
Browse files Browse the repository at this point in the history
  • Loading branch information
rjmacarthy committed Mar 28, 2024
1 parent 7a12955 commit 3d66275
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/extension/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ export const getChatDataFromProvider = (
return data?.choices[0].text
case ApiProviders.LlamaCpp:
return data?.content
case ApiProviders.LiteLLM:
default:
if (data?.choices[0].delta.content === 'undefined') {
return ''
Expand Down

0 comments on commit 3d66275

Please sign in to comment.