Skip to content

Newchat context #28

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Newchat context #28

wants to merge 2 commits into from

Conversation

Lmx154
Copy link

@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