-
Notifications
You must be signed in to change notification settings - Fork 229
llm: updates, fixes, refactor, ... #8684
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
base: master
Are you sure you want to change the base?
Conversation
e988b93 to
39dde7f
Compare
45edc28 to
cacdfe6
Compare
cacdfe6 to
c3f5d73
Compare
d4a071e to
24034f4
Compare
|
@codex review |
ffd3032 to
cf43a76
Compare
|
@codex review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codex Review
cocalc/src/packages/frontend/account/useLanguageModelSetting.tsx
Lines 28 to 45 in cf43a76
| const haveOpenAI = useTypedRedux("customize", "openai_enabled"); | |
| const haveGoogle = useTypedRedux("customize", "google_vertexai_enabled"); | |
| const haveOllama = useTypedRedux("customize", "ollama_enabled"); | |
| const haveCustomOpenAI = useTypedRedux("customize", "custom_openai_enabled"); | |
| const haveMistral = useTypedRedux("customize", "mistral_enabled"); | |
| const haveAnthropic = useTypedRedux("customize", "anthropic_enabled"); | |
| const enabledLLMs: LLMServicesAvailable = useMemo(() => { | |
| const projectsStore = redux.getStore("projects"); | |
| return projectsStore.whichLLMareEnabled(project_id); | |
| }, [ | |
| haveOpenAI, | |
| haveGoogle, | |
| haveOllama, | |
| haveCustomOpenAI, | |
| haveMistral, | |
| haveAnthropic, | |
| ]); |
xAI was added as a new provider, but useLanguageModelSetting still only subscribes to the legacy *_enabled flags. Because xai_enabled is not read anywhere in this hook, enabledLLMs is memoized without the xAI flag and will never refresh when administrators turn xAI on. In environments where xAI is enabled (especially if it is the only enabled provider), components that rely on this hook (AI Formula, Jupyter AI helpers, chat, etc.) will continue to treat xAI as unavailable and fall back to some other default model.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
cf43a76 to
49f0aaf
Compare
b0ef108 to
b59ab38
Compare
5f5d25a to
14afd81
Compare
14afd81 to
53eec99
Compare
|
@codex review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
d1ddc8d to
08b7d47
Compare
|
@codex review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
08b7d47 to
38a5245
Compare
38a5245 to
81cf811
Compare
|
@codex review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Uh oh!
There was an error while loading. Please reload this page.