Comments (14)
I have the same problem as you andremald, i.e. chat is working fine but FIM does nothing
anyway, and input on how to fix this would be appreciated. this otherwise great ext is not usable for me like that
from twinny.
Hello,
Please confirm all settings used for FIM completion providers. Also, please enable the debugging information in the extension settings and tick enable logging, then go to Help -> Toggle Developer Tools inside Visual Studio Code to look out for any errors.
Many thanks,
from twinny.
Hi! While debugging I could see that there is a request being sent if I use the chat functionality. However, nothing shows up in the console for the code completion , even when I request it with Option + \ ( I am a mac user ).
I also found a
"Problem creating default templates "/root/.twinny/templates""
Can it be that's the issue? No template-> no FIM?
from twinny.
Hey, that shouldn't be an issue for fim as they are built in. Please provide all the provider configuration settings as previously requested.
from twinny.
from twinny.
Type: FIM
Fim template: codegemma
Provider: ollama
Protocol: http
Model name: codegemma:2b
Hostname: host.docker.internal
Port: 11434
Path: /api/generate
As I mentioned in the previous message, I don't get request in the console as you do ( based on your photo )
EDIT: out of curiosity I did a ls
at /root/.twinny/templates
and cat
in the fim *.hbs
files ( there were two: fim.hbs
and fim-system.hbs
)
fim-system.hbs
is empty.
fim.hbs
contains the following
<PRE>{{{prefix}}} <SUF>>{{{sufix}}} <MID>
Hope that rings a bell. I would expect to have either more templates in a file or more template files.
EDIT 2: After staying stuck in the train I had the chance to 1) check your repo with more care, 2) debug a bit further.
With regards to 1: Just ignore the message about the *.hbs
files. I already understand that what you meant by "built-in".
With regards to 2: despite the fact that I don't get any logs about the request being sent, like I get when using the chat functionality, I do get the following.
2024-05-07 23:36:04.369 [info] [KeybindingService]: / Soft dispatching keyboard event
2024-05-07 23:36:04.369 [info] [KeybindingService]: \ Keyboard event cannot be dispatched
2024-05-07 23:36:04.369 [info] [KeybindingService]: / Received keydown event - modifiers: [alt], code: AltRight, keyCode: 18, key: Alt
2024-05-07 23:36:04.370 [info] [KeybindingService]: | Converted keydown event - modifiers: [alt], code: AltRight, keyCode: 6 ('Alt')
2024-05-07 23:36:04.370 [info] [KeybindingService]: \ Keyboard event cannot be dispatched in keydown phase.
2024-05-07 23:36:04.408 [info] [KeybindingService]: / Soft dispatching keyboard event
2024-05-07 23:36:04.408 [info] [KeybindingService]: | Resolving alt+[Backslash]
2024-05-07 23:36:04.408 [info] [KeybindingService]: \ From 1 keybinding entries, matched editor.action.inlineSuggest.trigger, when: editorTextFocus && !editorReadonly, source: user extension rjmacarthy.twinny.
2024-05-07 23:36:04.408 [info] [KeybindingService]: / Received keydown event - modifiers: [alt], code: Backslash, keyCode: 220, key: «
2024-05-07 23:36:04.408 [info] [KeybindingService]: | Converted keydown event - modifiers: [alt], code: Backslash, keyCode: 93 ('\')
2024-05-07 23:36:04.408 [info] [KeybindingService]: | Resolving alt+[Backslash]
2024-05-07 23:36:04.409 [info] [KeybindingService]: \ From 1 keybinding entries, matched editor.action.inlineSuggest.trigger, when: editorTextFocus && !editorReadonly, source: user extension rjmacarthy.twinny.
2024-05-07 23:36:04.409 [info] [KeybindingService]: + Invoking command editor.action.inlineSuggest.trigger.
2024-05-07 23:36:04.586 [info] [KeybindingService]: + Ignoring single modifier alt due to it being pressed together with other keys.
Attention to 2024-05-07 23:36:04.409 [info] [KeybindingService]: + Invoking command editor.action.inlineSuggest.trigger.
Hope it rings a bell now. I went through your code and though I am not a typescript programmer, I could follow most of it and it looks alright. I am somewhat clueless.
from twinny.
I would recommend trying codellama:7b-code to see if it works.
from twinny.
Just gave a try, still nothing:
Settings:
Edit: obviously with hostname
replaced by localhost
Console after a successful call to the chat api and several "Option + \ " in a python file:
from twinny.
Same problem here. All settings correct. 13b or 7b, doesn't matter. Only chat seems to work. I see the robot icon loading when i start coding, but no autocomplete prompts ever how
from twinny.
Failing for me too. I can see the message being received by the provider, but no response and no error. I am using Aphrodite's openai api server. I have tried different providers, yet none give a resopnse.
from twinny.
My issue might partly related to there not being an actual supported OpenAi provider. I setup a litellm proxy to forward to my model and I am still not getting any completions.
from twinny.
Related Issues (20)
- How to configure proxy? HOT 1
- Incomplete Code Autocompletion and Non-Responsive Chat UI in Twinny Extension HOT 5
- feat: open new chat window in new editor tab HOT 1
- Edit and re-submit in chat mode HOT 4
- Robot icon keeps spinning, no inference HOT 1
- Code completion works, but chat just spins the progress circle indefinitely HOT 2
- Configured providers but twinny not sending any requests to provider. HOT 3
- Multiline completion is confusing HOT 1
- Code snippets in the chat window loose syntax highlighting occasionally HOT 6
- FIM doesn't work with Keep Alive = -1 HOT 1
- Cannot read long model names when configuring provider HOT 1
- Option to save provider configuration to disk
- invalid option provided option="" HOT 4
- Codeqwen uses same FIM template as stable-code HOT 3
- Context Length Option With File Context Enabled Doesn't Limit Length HOT 1
- Chat workspace on right of visual code HOT 1
- Add OpenAI provider HOT 3
- FIM completion flexible context HOT 1
- Feature Request: Addition of a Visual Studio Plugin for Twinny HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from twinny.