Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
C
coderai
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexlab
coderai
Commits
afc975ba
Commit
afc975ba
authored
Mar 19, 2026
by
Your Name
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix import: set_grammar_guided_gen from codai.api.state
parent
033312e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
main.py
codai/main.py
+1
-1
No files found.
codai/main.py
View file @
afc975ba
...
@@ -60,7 +60,7 @@ def main():
...
@@ -60,7 +60,7 @@ def main():
global
global_system_prompt
,
global_tools_closer_prompt
,
global_debug
,
global_dump
,
global_file_path
,
grammar_guided_gen
global
global_system_prompt
,
global_tools_closer_prompt
,
global_debug
,
global_dump
,
global_file_path
,
grammar_guided_gen
# Set global grammar-guided-gen flag
# Set global grammar-guided-gen flag
from
codai.
models.grammar
import
set_grammar_guided_gen
from
codai.
api.state
import
set_grammar_guided_gen
grammar_guided_gen
=
args
.
grammar_guided_gen
grammar_guided_gen
=
args
.
grammar_guided_gen
if
grammar_guided_gen
:
if
grammar_guided_gen
:
print
(
"Grammar-guided generation enabled (--grammar-guided-gen)"
)
print
(
"Grammar-guided generation enabled (--grammar-guided-gen)"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment