INNER CODE UNIT · JavaScript

createAtlasProvider

WJZ-P/gemini-skill · src/atlas-provider.js:92

export function createAtlasProvider(options = {}) {
  const defaultApiKey = options.apiKey;

  return {
    async listModels({ apiKey, timeoutMs } = {}) {
      return atlasRequest('/models', {
        apiKey: apiKey || defaultApiKey,
        timeoutMs,
      });
    },

    async createChatCompletion(payload, { apiKey, timeoutMs } = {}) {
      return atlasRequest('/chat/completions', {
        apiKey: apiKey || defaultApiKey,
        method: 'POST',
        body: payload,
        timeoutMs,
      });

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…