17 lines
486 B
Markdown
17 lines
486 B
Markdown
# LLM API
|
|
|
|
## LMstudio
|
|
Use this file src\lib\lmstudio.ts
|
|
|
|
- async function callLmstudio(prompt: string): Promise<any> {
|
|
for just run prompt
|
|
- async function callLMStudioAPIWithFile(imagePath: string, prompt: string): Promise<any> {
|
|
for send file to llm
|
|
|
|
## OpenAI
|
|
Use this file src\lib\openai.ts
|
|
|
|
- async function callOpenAI(prompt: string): Promise<any>
|
|
for just run prompt
|
|
- async function callOpenAIWithFile(imagePath: string, prompt: string): Promise<any>
|
|
for send file to llm |