Skip to content

Newchat context#28

Open
Lmx154 wants to merge 2 commits intoericmichael:mainfrom
Lmx154:newchat-context
Open

Newchat context#28
Lmx154 wants to merge 2 commits intoericmichael:mainfrom
Lmx154:newchat-context

Conversation

@Lmx154
Copy link
Copy Markdown

@Lmx154 Lmx154 commented Feb 21, 2025

aistarterkit/settings.py

  • Added new environment variable to account for other openai api bases besides azure.
    chat/ai/agent.py
  • If Azure client unavailable, initialize OpenAI client with environment variables base and api key
  • generate_title function generates title of 10 words or less that captures initial conversation context.
    chat/views.py
  • set thread title to generated title after first bot response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant