Skip to content

Commit

Permalink
Litellm reponse fix (#1317)
Browse files Browse the repository at this point in the history
* litellm base version

* 1. added missing test cases
2. removed stream from hyperparameters from prompt action

* test cased fixed

* 1. added missing test case
2. updated litellm

* 1. added missing test case

* 1. added missing test case

* 1. added missing test case
2. removed deprecated api

* test cases fixed

* removed unused variable

* fixed unused variable

* fixed unused variable

* added test cased for fetching logs

* litellm base version

* 1. added missing test cases
2. removed stream from hyperparameters from prompt action

* test cased fixed

* 1. added missing test case
2. updated litellm

* 1. added missing test case

* 1. added missing test case

* 1. added missing test case
2. removed deprecated api

* test cases fixed

* removed unused variable

* fixed unused variable

* fixed unused variable

* added test cased for fetching logs

* added test cased for fetching logs

* removed unused import

* added invocation in metadata for litellm

* 1. changed rasa rule policy to allow max history
2. changed rasa domain.yml schemas to allow unicode Alphabets for slots and form name

* litellm base version

* 1. added missing test cases
2. removed stream from hyperparameters from prompt action

* test cased fixed

* 1. added missing test case
2. updated litellm

* 1. added missing test case

* 1. added missing test case

* 1. added missing test case
2. removed deprecated api

* test cases fixed

* removed unused variable

* fixed unused variable

* fixed unused variable

* added test cased for fetching logs

* added test cased for fetching logs

* litellm base version

* 1. added missing test cases
2. removed stream from hyperparameters from prompt action

* test cased fixed

* 1. added missing test case
2. updated litellm

* 1. added missing test case

* 1. added missing test case

* 1. added missing test case
2. removed deprecated api

* test cases fixed

* removed unused variable

* fixed unused variable

* fixed unused variable

* added test cased for fetching logs

* removed unused import

* added invocation in metadata for litellm

* 1. changed rasa rule policy to allow max history
2. changed rasa domain.yml schemas to allow unicode Alphabets for slots and form name

* test cases fixed after merging

* fixed litellm reponse

* test cases fixed
  • Loading branch information
sfahad1414 authored Jul 4, 2024
1 parent f575b9c commit a03df16
Show file tree
Hide file tree
Showing 3 changed files with 141 additions and 106 deletions.
2 changes: 1 addition & 1 deletion kairon/shared/llm/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ async def __get_completion(self, messages, hyperparameters, user, **kwargs):
**hyperparameters)
formatted_response = await self.__parse_completion_response(response,
**hyperparameters)
return formatted_response, response
return formatted_response, response.dict()

async def __get_answer(self, query, system_prompt: Text, context: Text, user, **kwargs):
use_query_prompt = False
Expand Down
Loading

0 comments on commit a03df16

Please sign in to comment.