Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Create Llama
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mirrored_repos
MachineLearning
run-llama
Create Llama
Commits
de88b322
Commit
de88b322
authored
5 months ago
by
Marcus Schiesser
Browse files
Options
Downloads
Patches
Plain Diff
fix: remove llamacloud for extractor
parent
ef88bff2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
questions/simple.ts
+27
-25
27 additions, 25 deletions
questions/simple.ts
with
27 additions
and
25 deletions
questions/simple.ts
+
27
−
25
View file @
de88b322
...
@@ -34,8 +34,10 @@ export const askSimpleQuestions = async (
...
@@ -34,8 +34,10 @@ export const askSimpleQuestions = async (
);
);
let
language
:
TemplateFramework
=
"
fastapi
"
;
let
language
:
TemplateFramework
=
"
fastapi
"
;
let
llamaCloudKey
=
args
.
llamaCloudKey
;
let
useLlamaCloud
=
false
;
if
(
appType
!==
"
extractor
"
)
{
if
(
appType
!==
"
extractor
"
)
{
const
res
=
await
prompts
(
const
{
language
:
newLanguage
}
=
await
prompts
(
{
{
type
:
"
select
"
,
type
:
"
select
"
,
name
:
"
language
"
,
name
:
"
language
"
,
...
@@ -47,35 +49,35 @@ export const askSimpleQuestions = async (
...
@@ -47,35 +49,35 @@ export const askSimpleQuestions = async (
},
},
questionHandlers
,
questionHandlers
,
);
);
language
=
res
.
language
;
language
=
newLanguage
;
}
const
{
useLlamaCloud
}
=
await
prompts
(
const
{
useLlamaCloud
:
newUseLlamaCloud
}
=
await
prompts
(
{
type
:
"
toggle
"
,
name
:
"
useLlamaCloud
"
,
message
:
"
Do you want to use LlamaCloud services?
"
,
initial
:
false
,
active
:
"
Yes
"
,
inactive
:
"
No
"
,
hint
:
"
see https://www.llamaindex.ai/enterprise for more info
"
,
},
questionHandlers
,
);
let
llamaCloudKey
=
args
.
llamaCloudKey
;
if
(
useLlamaCloud
&&
!
llamaCloudKey
)
{
// Ask for LlamaCloud API key, if not set
const
{
llamaCloudKey
:
newLlamaCloudKey
}
=
await
prompts
(
{
{
type
:
"
text
"
,
type
:
"
toggle
"
,
name
:
"
llamaCloudKey
"
,
name
:
"
useLlamaCloud
"
,
message
:
message
:
"
Do you want to use LlamaCloud services?
"
,
"
Please provide your LlamaCloud API key (leave blank to skip):
"
,
initial
:
false
,
active
:
"
Yes
"
,
inactive
:
"
No
"
,
hint
:
"
see https://www.llamaindex.ai/enterprise for more info
"
,
},
},
questionHandlers
,
questionHandlers
,
);
);
llamaCloudKey
=
newLlamaCloudKey
||
process
.
env
.
LLAMA_CLOUD_API_KEY
;
useLlamaCloud
=
newUseLlamaCloud
;
if
(
useLlamaCloud
&&
!
llamaCloudKey
)
{
// Ask for LlamaCloud API key, if not set
const
{
llamaCloudKey
:
newLlamaCloudKey
}
=
await
prompts
(
{
type
:
"
text
"
,
name
:
"
llamaCloudKey
"
,
message
:
"
Please provide your LlamaCloud API key (leave blank to skip):
"
,
},
questionHandlers
,
);
llamaCloudKey
=
newLlamaCloudKey
||
process
.
env
.
LLAMA_CLOUD_API_KEY
;
}
}
}
const
modelConfig
=
await
askModelConfig
({
const
modelConfig
=
await
askModelConfig
({
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment