mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-02 20:43:36 +00:00
redesign our approach for api keys to not use claude setup-token
This commit is contained in:
@@ -60,7 +60,7 @@ export const buildProviderConfigs = ({
|
||||
}: ProviderConfigParams): ProviderConfig[] => [
|
||||
{
|
||||
key: "anthropic",
|
||||
label: "Anthropic API Key (Claude)",
|
||||
label: "Anthropic API Key",
|
||||
inputId: "anthropic-key",
|
||||
placeholder: "sk-ant-...",
|
||||
value: anthropic.value,
|
||||
@@ -82,33 +82,32 @@ export const buildProviderConfigs = ({
|
||||
descriptionPrefix: "Used for Claude AI features. Get your key at",
|
||||
descriptionLinkHref: "https://console.anthropic.com/account/keys",
|
||||
descriptionLinkText: "console.anthropic.com",
|
||||
descriptionSuffix:
|
||||
". Alternatively, the CLAUDE_CODE_OAUTH_TOKEN environment variable can be used.",
|
||||
},
|
||||
{
|
||||
key: "google",
|
||||
label: "Google API Key (Gemini)",
|
||||
inputId: "google-key",
|
||||
placeholder: "AIza...",
|
||||
value: google.value,
|
||||
setValue: google.setValue,
|
||||
showValue: google.show,
|
||||
setShowValue: google.setShow,
|
||||
hasStoredKey: apiKeys.google,
|
||||
inputTestId: "google-api-key-input",
|
||||
toggleTestId: "toggle-google-visibility",
|
||||
testButton: {
|
||||
onClick: google.onTest,
|
||||
disabled: !google.value || google.testing,
|
||||
loading: google.testing,
|
||||
testId: "test-gemini-connection",
|
||||
},
|
||||
result: google.result,
|
||||
resultTestId: "gemini-test-connection-result",
|
||||
resultMessageTestId: "gemini-test-connection-message",
|
||||
descriptionPrefix:
|
||||
"Used for Gemini AI features (including image/design prompts). Get your key at",
|
||||
descriptionLinkHref: "https://makersuite.google.com/app/apikey",
|
||||
descriptionLinkText: "makersuite.google.com",
|
||||
descriptionSuffix: ".",
|
||||
},
|
||||
// {
|
||||
// key: "google",
|
||||
// label: "Google API Key (Gemini)",
|
||||
// inputId: "google-key",
|
||||
// placeholder: "AIza...",
|
||||
// value: google.value,
|
||||
// setValue: google.setValue,
|
||||
// showValue: google.show,
|
||||
// setShowValue: google.setShow,
|
||||
// hasStoredKey: apiKeys.google,
|
||||
// inputTestId: "google-api-key-input",
|
||||
// toggleTestId: "toggle-google-visibility",
|
||||
// testButton: {
|
||||
// onClick: google.onTest,
|
||||
// disabled: !google.value || google.testing,
|
||||
// loading: google.testing,
|
||||
// testId: "test-gemini-connection",
|
||||
// },
|
||||
// result: google.result,
|
||||
// resultTestId: "gemini-test-connection-result",
|
||||
// resultMessageTestId: "gemini-test-connection-message",
|
||||
// descriptionPrefix:
|
||||
// "Used for Gemini AI features (including image/design prompts). Get your key at",
|
||||
// descriptionLinkHref: "https://makersuite.google.com/app/apikey",
|
||||
// descriptionLinkText: "makersuite.google.com",
|
||||
// },
|
||||
];
|
||||
|
||||
@@ -91,3 +91,4 @@ export const CHAT_TOOLS = [
|
||||
* Default max turns for chat
|
||||
*/
|
||||
export const CHAT_MAX_TURNS = 1000;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user