Fix openai chat actor, director tests

- Update test ChatModelOptions setup since update to it's schema
- Fix stale function calls using their updated signatures
This commit is contained in:
Debanjum Singh Solanky
2024-06-09 07:16:55 +05:30
parent f91cdf8e18
commit f440ddbe1d
4 changed files with 62 additions and 46 deletions

View File

@@ -301,7 +301,7 @@ def chat_client_builder(search_config, user, index_content=True, require_auth=Fa
# Initialize Processor from Config
if os.getenv("OPENAI_API_KEY"):
chat_model = ChatModelOptionsFactory(chat_model="gpt-3.5-turbo", model_type="openai")
OpenAIProcessorConversationConfigFactory()
chat_model.openai_config = OpenAIProcessorConversationConfigFactory()
UserConversationProcessorConfigFactory(user=user, setting=chat_model)
state.anonymous_mode = not require_auth