!feat: ai sdk and configuration#41
Conversation
|
Should i merge into this okxiaoliang4#1 together? Will improve the setting configuration, can closed #42 |
* refactor: refine `anthropic` and `openai` settings * refactor: improve configuration * chore: move to headers config * fix: ollama baseURL, add description * chore: change azure deploymentId * chore: eslint * chore: update allowed_urls
|
Fully configuration. {
"void.provider": "azure",
"void.anthropic.apiKey": "",
"void.anthropic.model": "claude-3-5-sonnet-20240620",
"void.anthropic.providerSettings": {
"baseURL": "",
"headers": {}
},
"void.openai.apiKey": "",
"void.openai.model": "gpt-4o",
"void.openai.providerSettings": {
"baseURL": "",
"compatibility": "strict",
"headers": {},
"organization": "",
"project": ""
},
"void.ollama.model": "llama3.1",
"void.ollama.providerSettings": {
"baseURL": "",
"headers": {}
},
"void.azure.apiKey": "xxxx",
"void.azure.deploymentId": "gpt-4o",
"void.azure.resourceName": "xxxx",
"void.azure.providerSettings": {
"baseURL": "",
"headers": {}
},
"void.greptile.apiKey": "apik_xxxx",
"void.greptile.providerSettings": {
"headers": {
"X-Github-Token": "xxxx"
},
"repoinfo": [
{
"branch": "main",
"remote": "github",
"repository": "xxxx"
}
]
},
}breaking change: void.whichApi -> void.provider |
|
Yes, please merge these changes. |
Is merged. This PR is ready to review and merge |
| "type": "object", | ||
| "description": "Custom headers to include in the requests.", | ||
| "properties": { | ||
| "X-Github-Token": { |
There was a problem hiding this comment.
Should we change this to void.greptile.githubToken?
|
Unfortunately we don't want to have a dependence on 'ai'. Please see |
Add
@ai/sdkfor multiple ai provider including ollamaclosed: #27 #22 #42