Add login_url to authed providers

Create a home page for the GUI
Fix CopyButton in Code Highlight
This commit is contained in:
Heiner Lohaus 2025-01-03 02:40:21 +01:00
parent 5b74a22cf9
commit 486e9a9122
32 changed files with 502 additions and 88 deletions

View file

@ -127,8 +127,8 @@ class Copilot(AbstractProvider, ProviderModelMixin):
response = session.post(cls.conversation_url)
raise_for_status(response)
conversation_id = response.json().get("id")
conversation = Conversation(conversation_id)
if return_conversation:
conversation = Conversation(conversation_id)
yield conversation
if prompt is None:
prompt = format_prompt_max_length(messages, 10000)