assistant: Limit model access for Zed AI users to Claude-3.5-sonnet (#15904)

This prevents users from accessing other models, such as OpenAI's GPT-4
or Google's Gemini-Pro.
Staff members can still access all models.

Co-authored-by: Thorsten <thorsten@zed.dev>

Release Notes:

- N/A

---------

Co-authored-by: Thorsten <thorsten@zed.dev>
This commit is contained in:
Bennet Bo Fenner 2024-08-07 16:26:56 +02:00 committed by GitHub
parent efbf7ada28
commit 3a52d6cc52
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 130 additions and 5 deletions

View file

@ -5164,6 +5164,7 @@ async fn get_llm_api_token(
let token = LlmTokenClaims::create(
session.user_id(),
session.is_staff(),
session.current_plan().await?,
&session.app_state.config,
)?;