Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Llama Index
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
Llama Index
Commits
5fdf7f59
Unverified
Commit
5fdf7f59
authored
1 year ago
by
James Braza
Committed by
GitHub
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Allowing `LOCALAI_DEFAULTS` to work with `__ror__` (#9502)
parent
90994aca
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
llama_index/llms/localai.py
+3
-2
3 additions, 2 deletions
llama_index/llms/localai.py
with
3 additions
and
2 deletions
llama_index/llms/localai.py
+
3
−
2
View file @
5fdf7f59
...
...
@@ -7,7 +7,7 @@ Source: https://github.com/go-skynet/LocalAI
import
warnings
from
types
import
MappingProxyType
from
typing
import
Any
,
Callable
,
Dict
,
Mapping
,
Optional
,
Sequence
from
typing
import
Any
,
Callable
,
Dict
,
Optional
,
Sequence
from
llama_index.bridge.pydantic
import
Field
from
llama_index.constants
import
DEFAULT_CONTEXT_WINDOW
...
...
@@ -19,7 +19,8 @@ from llama_index.types import BaseOutputParser, PydanticProgramMode
# Use these as kwargs for OpenAILike to connect to LocalAIs
DEFAULT_LOCALAI_PORT
=
8080
LOCALAI_DEFAULTS
:
Mapping
[
str
,
Any
]
=
MappingProxyType
(
# TODO: move to MappingProxyType[str, Any] once Python 3.9+
LOCALAI_DEFAULTS
:
Dict
[
str
,
Any
]
=
MappingProxyType
(
# type: ignore[assignment]
{
"
api_key
"
:
"
localai_fake
"
,
"
api_type
"
:
"
localai_fake
"
,
...
...
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